|
libui
A portable GUI library for C
|
Developer defined methods for data retrieval and setting.
These methods get called whenever the associated uiTableModel needs to retrieve data or a uiTable wants to set data.
Validate ranges
Validate types on each getter/setter call (? table columns only?)
#include <ui.h>
Public Attributes | |
| int(* | NumColumns )(uiTableModelHandler *, uiTableModel *) |
| Returns the number of columns in the uiTableModel. | |
| uiTableValueType(* | ColumnType )(uiTableModelHandler *, uiTableModel *, int column) |
| Returns the column type in for of a uiTableValueType. | |
| int(* | NumRows )(uiTableModelHandler *, uiTableModel *) |
| Returns the number of rows in the uiTableModel. | |
| uiTableValue *(* | CellValue )(uiTableModelHandler *mh, uiTableModel *m, int row, int column) |
| Returns the cell value for (row, column). | |
| void(* | SetCellValue )(uiTableModelHandler *, uiTableModel *, int, int, const uiTableValue *) |
| Sets the cell value for (row, column). | |
| uiTableValue *(* uiTableModelHandler::CellValue) (uiTableModelHandler *mh, uiTableModel *m, int row, int column) |
Returns the cell value for (row, column).
Make sure to use the uiTableValue constructors. The returned value must match the uiTableValueType defined in ColumnType().
Some columns may return NULL as a special value. Refer to the appropriate uiTableAppend*Column() documentation.
| uiTableValueType(* uiTableModelHandler::ColumnType) (uiTableModelHandler *, uiTableModel *, int column) |
Returns the column type in for of a uiTableValueType.
| int(* uiTableModelHandler::NumColumns) (uiTableModelHandler *, uiTableModel *) |
Returns the number of columns in the uiTableModel.
| int(* uiTableModelHandler::NumRows) (uiTableModelHandler *, uiTableModel *) |
Returns the number of rows in the uiTableModel.
| void(* uiTableModelHandler::SetCellValue) (uiTableModelHandler *, uiTableModel *, int, int, const uiTableValue *) |
Sets the cell value for (row, column).
It is up to the handler to decide what to do with the value: change the model or reject the change, keeping the old value.
Some columns may call this function with NULL as a special value. Refer to the appropriate uiTableAppend*Column() documentation.