#include <kanzi/ui/node/concept/list_box/default_list_box_item_generator.hpp>
Public Types | |
typedef shared_ptr< DefaultListBoxItemGenerator< TBaseItemGenerator > > | DefaultListBoxItemGeneratorSharedPtr |
Public Member Functions | |
TBaseItemGenerator::ItemSharedPtr | acquireItem (size_t index) override |
Gets an object that should be displayed at the given index. | |
void | attach (typename TBaseItemGenerator::ListBoxType &) override |
Attaches the Object Generator. | |
void | detach (typename TBaseItemGenerator::ListBoxType &) override |
Detaches the Object Generator. | |
optional< size_t > | findListIndex (typename TBaseItemGenerator::ItemSharedPtr const &object) |
Finds index of the given object in the list. | |
size_t | getCount () override |
Gets the number of objects known by the object generator. | |
optional< size_t > | getItemIndex (typename TBaseItemGenerator::ItemSharedPtr object) 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. | |
TBaseItemGenerator::VectorType | getItemSize (size_t index) override |
Gets exact size of the object that should be displayed at the given index. | |
size_t | getListCount () |
Returns the number of objects controlled by the list interface. | |
TBaseItemGenerator::ItemSharedPtr | getListObject (size_t index) |
Gets the object at the given index of the list. | |
void | insertListObject (size_t index, typename TBaseItemGenerator::ItemSharedPtr object) |
Inserts an object at the given index. | |
void | releaseItem (typename TBaseItemGenerator::ItemSharedPtr) override |
Frees an object that has been returned from getObject. | |
void | removeListObject (size_t index) |
Removes an object at the given index from the object generator's list. | |
void | replaceListObject (size_t index, typename TBaseItemGenerator::ItemSharedPtr object) |
Replaces the object at the given index in the object generator's list. | |
Static Public Member Functions | |
static DefaultListBoxItemGeneratorSharedPtr | create (Domain *domain, string_view) |
static void | doArrange (Node2D &node) |
static void | doArrange (Node3D &node) |
static void | doRemeasure (Node2D &node) |
static void | doRemeasure (Node3D &node) |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
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.
|
inlineoverride |
Attaches the Object Generator.
|
inlineoverride |
Detaches the Object Generator.
|
inlineoverride |
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.
|
inlineoverride |
Frees an object that has been returned from getObject.
|
inlineoverride |
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 |
|
inlineoverride |
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.
|
inlineoverride |
Gets the number of objects known by the object generator.
Last index can be calculated as 'count' - 1.