StringGridWidget

Grid view with string data shown. All rows are of the same height

Constructors

this
this()

empty parameter list constructor - for usage by factory

this
this(string ID)

create with ID parameter

Members

Functions

cellText
dstring cellText(int col, int row)

get cell text

colTitle
dstring colTitle(int col)

returns row header title

drawCell
void drawCell(DrawBuf buf, Rect rc, int col, int row)

draw cell content

drawCellBackground
void drawCellBackground(DrawBuf buf, Rect rc, int c, int r)

draw cell background

drawHeaderCell
void drawHeaderCell(DrawBuf buf, Rect rc, int col, int row)

draw cell content

drawHeaderCellBackground
void drawHeaderCellBackground(DrawBuf buf, Rect rc, int c, int r)

draw cell background

measureCell
Point measureCell(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
onThemeChanged
void onThemeChanged()

handle theme change: e.g. reload some themed resources

resize
void resize(int c, int r)

set new size

rowTitle
dstring rowTitle(int row)

returns row header title

setCellText
StringGridWidgetBase setCellText(int col, int row, dstring text)

set cell text

setColTitle
StringGridWidgetBase setColTitle(int col, dstring title)

set col header title

setRowTitle
StringGridWidgetBase setRowTitle(int row, dstring title)

set row header title

Variables

_colTitles
dstring[] _colTitles;
Undocumented in source.
_data
dstring[][] _data;
Undocumented in source.
_rowTitles
dstring[] _rowTitles;
Undocumented in source.

Inherited Members

From StringGridWidgetBase

cellText
dstring cellText(int col, int row)

get cell text

setCellText
StringGridWidgetBase setCellText(int col, int row, dstring text)

set cell text

rowTitle
dstring rowTitle(int row)

returns row header title

setRowTitle
StringGridWidgetBase setRowTitle(int row, dstring title)

set row header title

colTitle
dstring colTitle(int col)

returns row header title

setColTitle
StringGridWidgetBase setColTitle(int col, dstring title)

set col header title

Meta