ui/ui/win32.h

changeset 841
651cf2c59dd9
parent 815
7ddf5fb7ec2a
child 938
be4c88ded783
equal deleted inserted replaced
840:f74250eda598 841:651cf2c59dd9
39 39
40 typedef struct W32WidgetClass W32WidgetClass; 40 typedef struct W32WidgetClass W32WidgetClass;
41 typedef struct W32Widget W32Widget; 41 typedef struct W32Widget W32Widget;
42 typedef struct W32Size W32Size; 42 typedef struct W32Size W32Size;
43 43
44 typedef void (*W32LayoutFunc)(void *, int, int);
45
44 struct W32Size { 46 struct W32Size {
45 int width; 47 int width;
46 int height; 48 int height;
47 }; 49 };
48 50
56 58
57 struct W32Widget { 59 struct W32Widget {
58 W32WidgetClass *wclass; 60 W32WidgetClass *wclass;
59 HWND hwnd; 61 HWND hwnd;
60 void *userdata; 62 void *userdata;
63 void (*layout)(void *layout, int width, int height);
64 void *layoutmanager;
61 }; 65 };
62 66
63 #ifdef __cplusplus 67 #ifdef __cplusplus
64 } 68 }
65 #endif 69 #endif

mercurial