The OpenD Programming Language

ListWidget

A list widget contains a list of strings that the user can examine and select.

More...

Members

Functions

getSelection
int getSelection()

Gets the index of the selected item. In case of multi select, the index of the first selected item is returned. Returns -1 if nothing is selected.

setSelection
void setSelection(int y)

Sets the current selection to the yth item in the list. Will emit ChangeEvent when complete.

Manifest constants

multiSelect
enum multiSelect;

not implemented yet

Mixins

__anonymous
mixin Emits!(ChangeEvent!void)

Sends a change event when the selection changes, but the data is not attached to the event. You must instead loop the options to see if they are selected.

Detailed Description

In the future, items in the list may be possible to be more than just strings.

See Also

Meta