Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
KzuUiListBox Struct Reference

List box. More...

#include <kzu_ui_list_box.h>

Data Fields

struct KzuUiComponentNode componentNode
 Inherited from KzuUiComponentNode. More...
 
struct KzuPresenterpresenter
 Controls presentation of objects. More...
 
struct KzuUiScrollViewscrollView
 Controls scrolling of list box. More...
 
kzInt selectedItem
 Current selection. More...
 
kzBool ownsPresenter
 Should list box delete presenter at uninitialize. More...
 
struct KzcHashMapitemInfosByIndices
 Item infos by item indices. More...
 
struct KzcHashMapitemInfosByItems
 Item infos by item pointers. More...
 
struct KzcHashMapitemInfosByObjects
 Item infos by objects. More...
 
struct KzcHashMapitemInfosByObjectsBuffer
 Double buffer for itemInfosByObjects. More...
 
kzUint beginIndex
 Index of the first item. More...
 
kzUint itemCount
 Number of items. More...
 
struct KzuObjectGeneratorobjectGenerator
 Generates and handles objects for list box. More...
 
kzMutableString objectGeneratorTypeName
 Name of the used ObjectGenerator. More...
 
struct KzuItemGeneratoritemGenerator
 Generates and handlers list box items for list box. More...
 
kzMutableString itemContainerGeneratorTypeName
 Name of the used ítem generator. More...
 
kzUint totalItemCount
 How many elements the list box has in total. More...
 
kzBool forceUpdate
 Forces re-update even with previous range when items have been added, removed, or replaced. More...
 

Detailed Description

List box.

List box user interface component.

Provides list box functionality for layouts.

The list box is supplied with a kzuObjectGenerator to provide elements for the list box, and with a kzuItemGenerator to provide items that will hold the actual elements.

Whenever the elements of a kzuObjectGenerator change, kzuUiListBoxItemReplaced, kzuUiListBoxItemAdded or kzuUiListBoxItemRemoved needs to be called.

Field Documentation

struct KzuUiComponentNode KzuUiListBox::componentNode

Inherited from KzuUiComponentNode.

struct KzuPresenter* KzuUiListBox::presenter

Controls presentation of objects.

struct KzuUiScrollView* KzuUiListBox::scrollView

Controls scrolling of list box.

kzInt KzuUiListBox::selectedItem

Current selection.

kzBool KzuUiListBox::ownsPresenter

Should list box delete presenter at uninitialize.

struct KzcHashMap* KzuUiListBox::itemInfosByIndices

Item infos by item indices.

<kzUint, KzuUiListBoxItemInfo*>.

struct KzcHashMap* KzuUiListBox::itemInfosByItems

Item infos by item pointers.

<KzuUiListBoxItem*, KzuUiListBoxItemInfo*>.

struct KzcHashMap* KzuUiListBox::itemInfosByObjects

Item infos by objects.

<kzuObjectNode*, KzuUiListBoxItemInfo*>.

struct KzcHashMap* KzuUiListBox::itemInfosByObjectsBuffer

Double buffer for itemInfosByObjects.

<KzuObjectNode*, KzuUiListBoxItemInfo*>.

kzUint KzuUiListBox::beginIndex

Index of the first item.

kzUint KzuUiListBox::itemCount

Number of items.

struct KzuObjectGenerator* KzuUiListBox::objectGenerator

Generates and handles objects for list box.

kzMutableString KzuUiListBox::objectGeneratorTypeName

Name of the used ObjectGenerator.

struct KzuItemGenerator* KzuUiListBox::itemGenerator

Generates and handlers list box items for list box.

kzMutableString KzuUiListBox::itemContainerGeneratorTypeName

Name of the used ítem generator.

kzUint KzuUiListBox::totalItemCount

How many elements the list box has in total.

kzBool KzuUiListBox::forceUpdate

Forces re-update even with previous range when items have been added, removed, or replaced.


The documentation for this struct was generated from the following file: