2015-09-04 13:51:10 -05:00
|
|
|
// 4 september 2015
|
|
|
|
|
|
|
|
typedef struct uiArea uiArea;
|
|
|
|
typedef struct uiAreaHandler uiAreaHandler;
|
|
|
|
typedef struct uiAreaDrawParams uiAreaDrawParams;
|
|
|
|
|
|
|
|
struct uiAreaHandler {
|
2015-09-06 15:20:37 -05:00
|
|
|
void (*Draw)(uiAreaHandler *, uiArea *, uiAreaDrawParams *);
|
2015-09-05 19:05:48 -05:00
|
|
|
uintmax_t (*HScrollMax)(uiAreaHandler *, uiArea *);
|
|
|
|
uintmax_t (*VScrollMax)(uiAreaHandler *, uiArea *);
|
2015-09-04 13:51:10 -05:00
|
|
|
};
|
|
|
|
|
2015-09-06 15:20:37 -05:00
|
|
|
struct uiAreaDrawParams {
|
|
|
|
// TODO context
|
|
|
|
|
|
|
|
intmax_t ClientWidth;
|
|
|
|
intmax_t ClientHeight;
|
|
|
|
|
|
|
|
intmax_t ClipX;
|
|
|
|
intmax_t ClipY;
|
|
|
|
intmax_t ClipWidth;
|
|
|
|
intmax_t ClipHeight;
|
|
|
|
|
|
|
|
//TODO xxxx DPIX;
|
|
|
|
//TODO xxxx DPIY;
|
|
|
|
|
|
|
|
intmax_t HScrollPos;
|
|
|
|
intmax_t VScrollPos;
|
|
|
|
};
|