| 34 |
34 |
| 35 #ifdef __cplusplus |
35 #ifdef __cplusplus |
| 36 extern "C" { |
36 extern "C" { |
| 37 #endif |
37 #endif |
| 38 |
38 |
| 39 typedef struct UiDrawEvent { |
39 |
| 40 ui_drawfunc callback; |
40 typedef struct UiDrawingArea { |
| 41 UiObject *obj; |
41 UiObject *obj; |
| 42 void *userdata; |
42 GtkWidget *widget; |
| 43 } UiDrawEvent; |
43 ui_drawfunc draw; |
| |
44 void *drawdata; |
| |
45 ui_callback onclick; |
| |
46 void *onclickdata; |
| |
47 ui_callback onmotion; |
| |
48 void *onmotiondata; |
| |
49 } UiDrawingArea; |
| 44 |
50 |
| 45 struct UiTextLayout { |
51 struct UiTextLayout { |
| 46 PangoLayout *layout; |
52 PangoLayout *layout; |
| 47 }; |
53 }; |
| 48 |
54 |
| 49 // implemented in draw_*.h |
55 // implemented in draw_*.h |
| 50 void ui_connect_draw_handler(GtkWidget *widget, UiDrawEvent *event); |
56 //void ui_connect_draw_handler(GtkWidget *widget, UiDrawEvent *event); |
| 51 PangoContext *ui_get_pango_context(UiGraphics *g); |
57 PangoContext *ui_get_pango_context(UiGraphics *g); |
| 52 |
58 |
| 53 #ifdef __cplusplus |
59 #ifdef __cplusplus |
| 54 } |
60 } |
| 55 #endif |
61 #endif |