#include <kanzi/ui/node/concept/list_box/list_box_grid_presenter.hpp>
Public Types | |
| typedef shared_ptr< TLayout > | LayoutSharedPtr |
| typedef shared_ptr< TItemClass > | ItemSharedPtr |
| typedef shared_ptr< TScrollView > | ScrollViewSharedPtr |
Public Member Functions | |
| ListBoxGridPresenter () | |
| void | initialize (TFinalClass *listBox, LayoutSharedPtr layout) |
| void | scrollDirectionMessageHandler (ScrollViewConcept::ScrollDirectionMessageArguments &arguments) |
| void | scrollPageMessageHandler (ScrollViewConcept::ScrollPageMessageArguments &arguments) |
| void | scrollEdgeMessageHandler (ScrollViewConcept::ScrollEdgeMessageArguments &arguments) |
| void | onKeyDown (Keyboard::KeyDownMessageArguments &arguments) |
| Handles key down event. More... | |
| void | scroll (ScrollViewConcept::ScrollDirection direction) |
| Sets scroll delta to one item and starts scrolling to that direction. More... | |
| void | scroll (ScrollViewConcept::ScrollPage direction) |
| Sets scroll delta to one page and starts scrolling to that direction. More... | |
| void | scroll (ScrollViewConcept::ScrollEdge direction) |
| Sets scroll target to content edge and starts scrolling to that direction. More... | |
| void | notifyItemAdded (size_t) |
| Invalidates layout if an item is added. More... | |
| void | notifyItemRemoved (size_t) |
| Invalidates layout if an item is removed. More... | |
| void | notifyItemReplaced (size_t) |
| Invalidates layout if an item is replaced. More... | |
| void | notifyItemContainerChanged () |
| Invalidates layout if the item container is changed. More... | |
| void | update () |
| void | updateScrollViewBounds () |
| void | updateOffsetProperties () |
| Calculates properties VisibleAmountInParent and GridListBoxOffset for objects in the grid list box. More... | |
| bool | isStateChanged () |
| Returns KZ_TRUE if presenter's layout state has changed. More... | |
| void | getScrollBounds (float *out_scrollMinimumX, float *out_scrollMaximumX, float *out_scrollMinimumY, float *out_scrollMaximumY) const |
| Vector2 | deduceSkippedOffset () const |
| Calculates how much offset is being skipped by skipping non-visible items. More... | |
| void | updateRenderTransform (Vector2 scroll) |
| Updates scroll transform of layout. More... | |
| ItemSharedPtr | getItem (size_t presenterIndex) const |
| void | addToLayout (ItemSharedPtr listBoxItem) |
| void | removeFromLayout (ItemSharedPtr listBoxItem) |
| void | snap (Vector2 position, Vector2, bool, Vector2 *out_position, int *out_itemIndex) |
| void | setScroll (Vector2 scroll) |
| Vector2 | bringItemCenter (size_t selection) const |
| size_t | getColumnCount () const |
| Gets the number of columns that are currently displayed. More... | |
| size_t | getRowCount () const |
| Gets the number of rows that are currently displayed. More... | |
Static Public Member Functions | |
| static void | doRemeasure (Node3D &node) |
| static void | doRemeasure (Node2D &node) |
| static void | doUpdateRenderTransform (Node3D &node, Vector2 scroll) |
| static void | doUpdateRenderTransform (Node2D &node, Vector2 scroll) |
| typedef shared_ptr<TLayout> kanzi::ListBoxGridPresenter< TFinalClass, TLayout, TItemClass, TScrollView >::LayoutSharedPtr |
| typedef shared_ptr<TItemClass> kanzi::ListBoxGridPresenter< TFinalClass, TLayout, TItemClass, TScrollView >::ItemSharedPtr |
| typedef shared_ptr<TScrollView> kanzi::ListBoxGridPresenter< TFinalClass, TLayout, TItemClass, TScrollView >::ScrollViewSharedPtr |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Handles key down event.
|
inline |
Sets scroll delta to one item and starts scrolling to that direction.
| direction | Scroll direction. |
|
inline |
Sets scroll delta to one page and starts scrolling to that direction.
| direction | Scroll direction. |
|
inline |
Sets scroll target to content edge and starts scrolling to that direction.
| direction | Scroll direction. |
|
inline |
Invalidates layout if an item is added.
|
inline |
Invalidates layout if an item is removed.
|
inline |
Invalidates layout if an item is replaced.
|
inline |
Invalidates layout if the item container is changed.
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Calculates properties VisibleAmountInParent and GridListBoxOffset for objects in the grid list box.
|
inline |
Returns KZ_TRUE if presenter's layout state has changed.
|
inline |
|
inline |
Calculates how much offset is being skipped by skipping non-visible items.
|
inlinestatic |
|
inlinestatic |
|
inline |
Updates scroll transform of layout.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets the number of columns that are currently displayed.
|
inline |
Gets the number of rows that are currently displayed.