ListViewItem

Defines a single item in the listview. Draws directly onto the canvas to avoit using multiple framebuffers. Can be inherited from, and that's when non-alphabetical ordering can be implemented.

Constructors

this
this(int height, Text[] fields)

Creates a list view item from texts.

this
this(int height, Field[] fields)

Creates a ListViewItem from fields directly.

this
this(int height, dstring[] ds)

Creates a ListViewItem with default text formatting.

this
this(int height, dstring[] ds, TextInputFieldType[] inputTypes)

Creates a ListViewItem with default text formatting and input type.

Members

Functions

draw
void draw(ListView parent)

Draws the ListViewItem. Draw parameters are supplied via a nested class found in ListView.

length
size_t length()

Returns the amount of fields in this item.

opIndex
Field opIndex(size_t index)

Accesses fields like an array.

opIndexAssign
Field opIndexAssign(Field value, size_t index)

Accesses fields like an array.

Structs

Field
struct Field

Defines a single field (cell) in a listview.

Variables

fields
Field[] fields;

Stores the list of items to be displayed.

height
int height;

Height of this item.

Meta