ListBox

Displays multiple columns of data, also provides general text input.

Constructors

this
this(string source, Coordinate coordinates, ListBoxItem[] items, ListBoxHeader header, int rowHeight, bool enableTextInput)
Undocumented in source.

Members

Functions

addLine
void addLine(ListBoxItem i)

Adds a line to the bottom of the list.

addLine
void addLine(ListBoxItem i, int n)

Inserts a line to a given point of the list.

clearData
void clearData()

Clears the content of the ListBox.

draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
drawUpdate
void drawUpdate(WindowElement sender)
Undocumented in source. Be warned that the author may not have intended to support it.
getAbsolutePosition
Coordinate getAbsolutePosition(WindowElement sender)
Undocumented in source. Be warned that the author may not have intended to support it.
getStyleSheet
StyleSheet getStyleSheet()
Undocumented in source. Be warned that the author may not have intended to support it.
onClick
void onClick(int offsetX, int offsetY, int state, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
onDrag
void onDrag(int x, int y, int relX, int relY, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
onScroll
void onScroll(int x, int y, int wX, int wY)
Undocumented in source. Be warned that the author may not have intended to support it.
readLine
ListBoxItem readLine(int line)

Returns a line.

removeLine
void removeLine(int n)

Removes a line from the list.

updateColumns
void updateColumns(ListBoxItem[] items)

Updates the columns with the given data.

updateColumns
void updateColumns(ListBoxItem[] items, ListBoxHeader header)

Updates the columns with the given data and header.

updateColumns
void updateColumns()
brush
int brush;
brushHeader
int brushHeader;
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

columnWidth
int[] columnWidth;
fontHeader
int fontHeader;
Undocumented in source.
header
ListBoxHeader header;
Undocumented in source.
items
ListBoxItem[] items;
Undocumented in source.
onItemSelect
void delegate(Event ev) onItemSelect;
Undocumented in source.
onScrolling
void delegate(Event ev) onScrolling;
Undocumented in source.
onTextInput
void delegate(Event ev) onTextInput;
rowHeight
int rowHeight;
Undocumented in source.
selection
int selection;
Undocumented in source.
selectionColor
ushort selectionColor;
Undocumented in source.

Inherited Members

From WindowElement

text
wstring text;
Undocumented in source.
source
string source;
Undocumented in source.
position
Coordinate position;
Undocumented in source.
output
BitmapDrawer output;
Undocumented in source.
elementContainer
ElementContainer elementContainer;
Undocumented in source.
customStyle
StyleSheet customStyle;
Undocumented in source.
state
bool state;
Undocumented in source.
inputHandler
InputHandler inputHandler;
Undocumented in source.
popUpHandler
PopUpHandler popUpHandler;
Undocumented in source.
styleSheet
StyleSheet styleSheet;
Undocumented in source.
onDraw
void delegate() onDraw;
Undocumented in source.
onMouseLClickRel
void delegate(Event ev) onMouseLClickRel;
Undocumented in source.
onMouseRClickRel
void delegate(Event ev) onMouseRClickRel;
Undocumented in source.
onMouseMClickRel
void delegate(Event ev) onMouseMClickRel;
Undocumented in source.
onMouseHover
void delegate(Event ev) onMouseHover;
Undocumented in source.
onMouseMove
void delegate(Event ev) onMouseMove;
Undocumented in source.
onMouseLClickPre
void delegate(Event ev) onMouseLClickPre;
Undocumented in source.
onMouseRClickPre
void delegate(Event ev) onMouseRClickPre;
Undocumented in source.
onMouseMClickPre
void delegate(Event ev) onMouseMClickPre;
Undocumented in source.
onClick
void onClick(int offsetX, int offsetY, int state, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
onDrag
void onDrag(int x, int y, int relX, int relY, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
onKey
void onKey(char c, int type)
Undocumented in source. Be warned that the author may not have intended to support it.
onScroll
void onScroll(int x, int y, int wX, int wY)
Undocumented in source. Be warned that the author may not have intended to support it.
getX
int getX()
Undocumented in source. Be warned that the author may not have intended to support it.
getY
int getY()
Undocumented in source. Be warned that the author may not have intended to support it.
getPosition
Coordinate getPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()

Updates the output.

getText
wstring getText()
Undocumented in source. Be warned that the author may not have intended to support it.
setText
void setText(wstring s)
Undocumented in source. Be warned that the author may not have intended to support it.
getAvailableStyleSheet
StyleSheet getAvailableStyleSheet()
Undocumented in source. Be warned that the author may not have intended to support it.
setCustomStyle
void setCustomStyle(StyleSheet s)
Undocumented in source. Be warned that the author may not have intended to support it.
setState
void setState(bool b)

Enables (b = true) or disables (b = false) the element. All element is enabled by default.

getState
bool getState()

Gets the state of the element.

From ElementContainer

getAbsolutePosition
Coordinate getAbsolutePosition(WindowElement sender)
Undocumented in source.

Meta