#include <kanzi/ui/node/concept/list_box/default_list_box_item_generator.hpp>
Public Types | |
typedef shared_ptr< DefaultListBoxItemGenerator< TBaseItemGenerator > > | DefaultListBoxItemGeneratorSharedPtr |
Public Member Functions | |
size_t | getListCount () |
Returns the number of objects controlled by the list interface. More... | |
TBaseItemGenerator::ItemSharedPtr | getListObject (size_t index) |
Gets the object at the given index of the list. More... | |
optional< size_t > | findListIndex (typename TBaseItemGenerator::ItemSharedPtr const &object) |
Finds index of the given object in the list. More... | |
void | insertListObject (size_t index, typename TBaseItemGenerator::ItemSharedPtr object) |
Inserts an object at the given index. More... | |
void | removeListObject (size_t index) |
Removes an object at the given index from the object generator's list. More... | |
void | replaceListObject (size_t index, typename TBaseItemGenerator::ItemSharedPtr object) |
Replaces the object at the given index in the object generator's list. More... | |
virtual void | attach (typename TBaseItemGenerator::ListBoxType &) KZ_OVERRIDE |
Attaches the Object Generator. More... | |
virtual void | detach (typename TBaseItemGenerator::ListBoxType &) KZ_OVERRIDE |
Detaches the Object Generator. More... | |
virtual TBaseItemGenerator::ItemSharedPtr | acquireItem (size_t index) KZ_OVERRIDE |
Gets an object that should be displayed at the given index. More... | |
virtual void | releaseItem (typename TBaseItemGenerator::ItemSharedPtr) KZ_OVERRIDE |
Frees an object that has been returned from getObject. More... | |
virtual optional< size_t > | getItemIndex (typename TBaseItemGenerator::ItemSharedPtr object) KZ_OVERRIDE |
Gets index of an object that has been returned from getObject, or KZU_UI_LIST_BOX_NO_ITEM if the object does not exist. More... | |
virtual TBaseItemGenerator::VectorType | getItemSize (size_t index) KZ_OVERRIDE |
Gets exact size of the object that should be displayed at the given index. More... | |
virtual size_t | getCount () KZ_OVERRIDE |
Gets the number of objects known by the object generator. More... | |
Static Public Member Functions | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
static DefaultListBoxItemGeneratorSharedPtr | create (Domain *domain, string_view) |
static void | doRemeasure (Node3D &node) |
static void | doRemeasure (Node2D &node) |
static void | doArrange (Node3D &node) |
static void | doArrange (Node2D &node) |
Protected Member Functions | |
DefaultListBoxItemGenerator (Domain *domain) | |
typedef shared_ptr<DefaultListBoxItemGenerator<TBaseItemGenerator> > kanzi::DefaultListBoxItemGenerator< TBaseItemGenerator >::DefaultListBoxItemGeneratorSharedPtr |
|
inlineexplicitprotected |
|
inlinestatic |
|
inlinestatic |
|
inline |
Returns the number of objects controlled by the list interface.
|
inline |
Gets the object at the given index of the list.
|
inline |
Finds index of the given object in the list.
|
inline |
Inserts an object at the given index.
|
inline |
Removes an object at the given index from the object generator's list.
|
inline |
Replaces the object at the given index in the object generator's list.
|
inlinevirtual |
Attaches the Object Generator.
|
inlinevirtual |
Detaches the Object Generator.
|
inlinevirtual |
Gets an object that should be displayed at the given index.
If the object has already been created and not freed afterwards, returns the object from cache.
|
inlinevirtual |
Frees an object that has been returned from getObject.
|
inlinevirtual |
Gets index of an object that has been returned from getObject, or KZU_UI_LIST_BOX_NO_ITEM if the object does not exist.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Gets exact size of the object that should be displayed at the given index.
This size will be used unless the list box is provided an object prototype. If it is not possible to determine item size, unbounded layout value is returned. Caching the sizes may be a good idea.
|
inlinevirtual |
Gets the number of objects known by the object generator.
Last index can be calculated as 'count' - 1.