WidgetListAdapter

List adapter for simple list of widget instances

Destructor

~this
~this()
Undocumented in source.

Members

Functions

add
WidgetListAdapter add(Widget item, int index)

add item

clear
void clear()

remove all items

itemState
uint itemState(int index)

return list item's state flags

itemWidget
Widget itemWidget(int index)

return list item widget by item index

onThemeChanged
void onThemeChanged()

called when theme is changed

remove
WidgetListAdapter remove(int index)

remove item

resetItemState
uint resetItemState(int index, uint flags)

reset one or more list item's state flags, returns updated state

setItemState
uint setItemState(int index, uint flags)

set one or more list item's state flags, returns updated state

Properties

itemCount
int itemCount [@property getter]

returns number of widgets in list

wantMouseEvents
bool wantMouseEvents [@property getter]

return true to receive mouse events

widgets
const(WidgetList) widgets [@property getter]

list of widgets to display

Inherited Members

From ListAdapterBase

adapterChanged
Signal!OnAdapterChangeHandler adapterChanged;

Handle items change

connect
ListAdapter connect(OnAdapterChangeHandler handler)

connect adapter change handler

disconnect
ListAdapter disconnect(OnAdapterChangeHandler handler)

disconnect adapter change handler

itemId
int itemId(int index)

returns integer item id by index (if supported)

itemStringId
string itemStringId(int index)

returns string item id by index (if supported)

itemCount
int itemCount [@property getter]

returns number of widgets in list

itemWidget
Widget itemWidget(int index)

return list item widget by item index

itemState
uint itemState(int index)

return list item's state flags

setItemState
uint setItemState(int index, uint flags)

set one or more list item's state flags, returns updated state

resetItemState
uint resetItemState(int index, uint flags)

reset one or more list item's state flags, returns updated state

clear
void clear()

remove all items

updateViews
void updateViews()

notify listeners about list items changes

onThemeChanged
void onThemeChanged()

called when theme is changed

wantMouseEvents
bool wantMouseEvents [@property getter]

return true to receive mouse events

wantKeyEvents
bool wantKeyEvents [@property getter]

return true to receive keyboard events

Meta