00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef GWEN_UI_TABLEWIDGET_H
00029 #define GWEN_UI_TABLEWIDGET_H
00030
00031 #include <gwenhywfar/ui/widget.h>
00032 #include <gwenhywfar/misc.h>
00033
00034
00035 #define GWEN_TABLEWIDGET_FLAGS_BREAKLINES 0x00010000
00036 #define GWEN_TABLEWIDGET_FLAGS_COLBORDER 0x00020000
00037 #define GWEN_TABLEWIDGET_FLAGS_ROWBORDER 0x00040000
00038 #define GWEN_TABLEWIDGET_FLAGS_LINEMODE 0x00080000
00039 #define GWEN_TABLEWIDGET_FLAGS_FIXED 0x00100000
00040 #define GWEN_TABLEWIDGET_FLAGS_HIGHLIGHT 0x00200000
00041 #define GWEN_TABLEWIDGET_FLAGS_SELECTION 0x00400000
00042
00043
00044 typedef struct GWEN_TABLE_FIELD GWEN_TABLE_FIELD;
00045 typedef struct GWEN_TABLE_ROW GWEN_TABLE_ROW;
00046 typedef struct GWEN_TABLE_COLUMN GWEN_TABLE_COLUMN;
00047
00048 GWEN_LIST_FUNCTION_DEFS(GWEN_TABLE_FIELD, GWEN_TableField);
00049 GWEN_LIST_FUNCTION_DEFS(GWEN_TABLE_COLUMN, GWEN_TableColumn);
00050
00051
00052
00053 GWEN_WIDGET *GWEN_TableWidget_new(GWEN_WIDGET *parent,
00054 GWEN_TYPE_UINT32 flags,
00055 const char *name,
00056 int x, int y,
00057 int width, int height);
00058
00059 void GWEN_TableWidget_SetText(GWEN_WIDGET *w,
00060 int x, int y, const char *text);
00061 const char *GWEN_TableWidget_GetText(GWEN_WIDGET *w, int x, int y);
00062
00063
00064 int GWEN_TableWidget_AddColumn(GWEN_WIDGET *w, int width);
00065 int GWEN_TableWidget_GetColumns(const GWEN_WIDGET *w);
00066
00067 int GWEN_TableWidget_Clear(GWEN_WIDGET *w);
00068
00069
00070 #endif
00071
00072