Class RenderSliverFixedExtentBoxAdaptor
Inheritance
RenderSliverFixedExtentBoxAdaptor
Inherited Members
ContainerRenderObjectMixinRenderSliver<RenderBox, SliverMultiBoxAdaptorParentData>.remove(RenderBox)
Namespace: Unity.UIWidgets.rendering
Syntax
public abstract class RenderSliverFixedExtentBoxAdaptor : RenderSliverMultiBoxAdaptor, HitTestTarget, ContainerRenderObjectMixin
Constructors
RenderSliverFixedExtentBoxAdaptor(RenderSliverBoxChildManager)
Declaration
protected RenderSliverFixedExtentBoxAdaptor(RenderSliverBoxChildManager childManager = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderSliverBoxChildManager | childManager |
Properties
itemExtent
Declaration
public abstract float itemExtent { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
computeMaxScrollOffset(SliverConstraints, Single)
Declaration
protected float computeMaxScrollOffset(SliverConstraints constraints, float itemExtent)
Parameters
| Type | Name | Description |
|---|---|---|
| SliverConstraints | constraints | |
| Single | itemExtent |
Returns
| Type | Description |
|---|---|
| Single |
estimateMaxScrollOffset(SliverConstraints, Int32, Int32, Single, Single)
Declaration
protected virtual float estimateMaxScrollOffset(SliverConstraints constraints, int firstIndex = 0, int lastIndex = 0, float leadingScrollOffset = 0F, float trailingScrollOffset = 0F)
Parameters
| Type | Name | Description |
|---|---|---|
| SliverConstraints | constraints | |
| Int32 | firstIndex | |
| Int32 | lastIndex | |
| Single | leadingScrollOffset | |
| Single | trailingScrollOffset |
Returns
| Type | Description |
|---|---|
| Single |
getMaxChildIndexForScrollOffset(Single, Single)
Declaration
protected virtual int getMaxChildIndexForScrollOffset(float scrollOffset, float itemExtent)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | scrollOffset | |
| Single | itemExtent |
Returns
| Type | Description |
|---|---|
| Int32 |
getMinChildIndexForScrollOffset(Single, Single)
Declaration
protected virtual int getMinChildIndexForScrollOffset(float scrollOffset, float itemExtent)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | scrollOffset | |
| Single | itemExtent |
Returns
| Type | Description |
|---|---|
| Int32 |
indexToLayoutOffset(Single, Int32)
Declaration
protected virtual float indexToLayoutOffset(float itemExtent, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | itemExtent | |
| Int32 | index |
Returns
| Type | Description |
|---|---|
| Single |
performLayout()
Declaration
protected override void performLayout()