1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-19 21:34:12 +01:00

tableview field editor delegates

This commit is contained in:
kojima
2000-12-21 04:46:20 +00:00
parent 5e1e94efd6
commit f912d9f38d
7 changed files with 322 additions and 89 deletions

View File

@@ -12,12 +12,20 @@ typedef struct W_TableColumn WMTableColumn;
typedef struct W_TableView WMTableView;
extern const char *WMTableViewRowWasSelectedNotification;
extern const char *WMTableViewRowWasUnselectedNotification;
typedef struct WMTableColumnDelegate {
void *data;
void (*drawCell)(struct WMTableColumnDelegate *self, WMTableColumn *column,
int row);
void (*editCell)(struct WMTableColumnDelegate *self, WMTableColumn *column,
int row, XEvent *event);
void (*drawSelectedCell)(struct WMTableColumnDelegate *self,
WMTableColumn *column, int row);
void (*beginCellEdit)(struct WMTableColumnDelegate *self, WMTableColumn *column,
int row);
void (*endCellEdit)(struct WMTableColumnDelegate *self, WMTableColumn *column,
int row);
} WMTableColumnDelegate;