49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
// 23 june 2018
|
|
#include "../ui.h"
|
|
#include "uipriv.h"
|
|
#include "table.h"
|
|
|
|
int uiprivTableModelNumColumns(uiTableModel *m)
|
|
{
|
|
uiTableModelHandler *mh;
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
return (*(mh->NumColumns))(mh, m);
|
|
}
|
|
|
|
uiTableValueType uiprivTableModelColumnType(uiTableModel *m, int column)
|
|
{
|
|
uiTableModelHandler *mh;
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
return (*(mh->ColumnType))(mh, m, column);
|
|
}
|
|
|
|
int uiprivTableModelNumRows(uiTableModel *m)
|
|
{
|
|
uiTableModelHandler *mh;
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
return (*(mh->NumRows))(mh, m);
|
|
}
|
|
|
|
uiTableValue *uiprivTableModelCellValue(uiTableModel *m, int row, int column)
|
|
{
|
|
uiTableModelHandler *mh;
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
return (*(mh->CellValue))(mh, m, row, column);
|
|
}
|
|
|
|
void uiprivTableModelSetCellValue(uiTableModel *m, int row, int column, const uiTableValue *value)
|
|
{
|
|
uiTableModelHandler *mh;
|
|
|
|
mh = uiprivTableModelHandler(m);
|
|
(*(mh->SetCellValue))(mh, m, row, column, value);
|
|
}
|
|
|
|
const uiTableTextColumnOptionalParams uiprivDefaultTextColumnOptionalParams = {
|
|
.ColorModelColumn = -1,
|
|
};
|