Interface ICollectionViewLayoutManager
Interface for positioning item views within a CollectionView.
Namespace: Tizen.UIExtensions.ElmSharp
Assembly: Tizen.UIExtensions.ElmSharp.dll
Syntax
public interface ICollectionViewLayoutManager
Properties
CollectionView
CollectoinView interact with layout manager.
Declaration
ICollectionViewController CollectionView { get; set; }
Property Value
Type | Description |
---|---|
ICollectionViewController |
IsHorizontal
Whether the item is a layout horizontally.
Declaration
bool IsHorizontal { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetItemBound(Int32)
Gets item bound indicated by index.
Declaration
Rect GetItemBound(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Item index |
Returns
Type | Description |
---|---|
Rect | Bound of view |
GetScrollBlockSize()
Get Item size to scroll at once.
Declaration
int GetScrollBlockSize()
Returns
Type | Description |
---|---|
System.Int32 |
GetScrollCanvasSize()
Calculate scrolling canvas size.
Declaration
Size GetScrollCanvasSize()
Returns
Type | Description |
---|---|
Size | scrolling area size |
GetVisibleItemIndex(Int32, Int32)
Get item index by position.
Declaration
int GetVisibleItemIndex(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | X |
System.Int32 | y | Y |
Returns
Type | Description |
---|---|
System.Int32 | Index of postion |
ItemInserted(Int32)
Inform a new item was inserted.
Declaration
void ItemInserted(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of new item |
ItemMeasureInvalidated(Int32)
Update item measuring result.
Declaration
void ItemMeasureInvalidated(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of updated item |
ItemRemoved(Int32)
Inform item was removed.
Declaration
void ItemRemoved(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of reomved item |
ItemSourceUpdated()
Inform item source was updated.
Declaration
void ItemSourceUpdated()
ItemUpdated(Int32)
Inform item was updated.
Declaration
void ItemUpdated(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of updated item |
LayoutItems(Rect, Boolean)
Layout items.
Declaration
void LayoutItems(Rect bound, bool force = false)
Parameters
Type | Name | Description |
---|---|---|
Rect | bound | A view port area on scrolling canvas |
System.Boolean | force | Forced layout |
Reset()
Reset layouting cache.
Declaration
void Reset()
SetFooter(Nullable<EvasObject>, Size)
Sets footer on layout.
Declaration
void SetFooter(EvasObject? footer, Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<EvasObject> | footer | Fotter view |
Size | size | Size of footer |
SetHeader(Nullable<EvasObject>, Size)
Sets header on layout.
Declaration
void SetHeader(EvasObject? header, Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<EvasObject> | header | Header view |
Size | size | Size of header |
SizeAllocated(Size)
Inform a view Size of CollectionView.
Declaration
void SizeAllocated(Size size)
Parameters
Type | Name | Description |
---|---|---|
Size | size |