ui/motif/graphics.h

changeset 100
d2bd73d28ff1
parent 0
2483f517c562
equal deleted inserted replaced
99:b9767cb5b06b 100:d2bd73d28ff1
34 34
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" { 36 extern "C" {
37 #endif 37 #endif
38 38
39 typedef struct UiXlibGraphics {
40 UiGraphics g;
41 Display *display;
42 Widget widget;
43 Colormap colormap;
44 GC gc;
45 } UiXlibGraphics;
46
47 typedef struct UiDrawEvent {
48 ui_drawfunc callback;
49 UiObject *obj;
50 void *userdata;
51 UiXlibGraphics gr;
52 } UiDrawEvent;
53
54 typedef struct UiMouseEventData {
55 UiObject *obj;
56 ui_callback callback;
57 void *userdata;
58 Time last_event;
59 } UiMouseEventData;
60
61 struct UiTextLayout {
62 char *text;
63 size_t length;
64 Widget widget;
65 XFontSet fontset;
66 int maxwidth;
67 int width;
68 int height;
69 int changed;
70 };
71 39
72 40
73 #ifdef __cplusplus 41 #ifdef __cplusplus
74 } 42 }
75 #endif 43 #endif

mercurial