Interface ICollectionViewLayoutManager
Interface for positioning item views within a CollectionView
Namespace: Tizen.UIExtensions.NUI
Assembly: Tizen.UIExtensions.NUI.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
double GetScrollBlockSize()
Returns
Type | Description |
---|---|
System.Double |
GetScrollCanvasSize()
Calculate scrolling canvas size
Declaration
Size GetScrollCanvasSize()
Returns
Type | Description |
---|---|
Size | scrolling area size |
GetVisibleItemIndex(Double, Double)
Get item index by position
Declaration
int GetVisibleItemIndex(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | X |
System.Double | 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<NUI.BaseComponents.View>, Size)
Sets footer on layout
Declaration
void SetFooter(NUI.BaseComponents.View? footer, Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Tizen.NUI.BaseComponents.View> | footer | Fotter view |
Size | size | Size of footer |
SetHeader(Nullable<NUI.BaseComponents.View>, Size)
Sets header on layout
Declaration
void SetHeader(NUI.BaseComponents.View? header, Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Tizen.NUI.BaseComponents.View> | 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 |