Mercurial > MadButterfly
comparison src/shapes.h @ 73:9ab15ebc9061
Observer for mouse events
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 18 Aug 2008 01:59:26 +0800 |
parents | e292beec12d4 |
children | dd813dcc232c |
comparison
equal
deleted
inserted
replaced
72:171a8cb7e4b5 | 73:9ab15ebc9061 |
---|---|
18 * - redraw_man.c:clean_shape | 18 * - redraw_man.c:clean_shape |
19 * - redraw_man.c:draw_shape | 19 * - redraw_man.c:draw_shape |
20 */ | 20 */ |
21 | 21 |
22 | 22 |
23 extern void sh_path_free(shape_t *path); | |
24 extern shape_t *sh_path_new(char *data); | 23 extern shape_t *sh_path_new(char *data); |
25 extern void sh_path_transform(shape_t *shape); | 24 extern void sh_path_transform(shape_t *shape); |
26 extern void sh_path_draw(shape_t *shape, cairo_t *cr); | 25 extern void sh_path_draw(shape_t *shape, cairo_t *cr); |
27 | 26 |
28 | 27 |
29 extern void sh_text_free(shape_t *text); | |
30 extern shape_t *sh_text_new(const char *txt, co_aix x, co_aix y, | 28 extern shape_t *sh_text_new(const char *txt, co_aix x, co_aix y, |
31 co_aix font_size, cairo_font_face_t *face); | 29 co_aix font_size, cairo_font_face_t *face); |
32 extern void sh_text_transform(shape_t *shape); | 30 extern void sh_text_transform(shape_t *shape); |
33 extern void sh_text_draw(shape_t *shape, cairo_t *cr); | 31 extern void sh_text_draw(shape_t *shape, cairo_t *cr); |
34 | 32 |
35 extern shape_t *sh_rect_new(co_aix x, co_aix y, co_aix w, co_aix h, | 33 extern shape_t *sh_rect_new(co_aix x, co_aix y, co_aix w, co_aix h, |
36 co_aix rx, co_aix ry); | 34 co_aix rx, co_aix ry); |
37 extern void sh_rect_free(shape_t *shape); | |
38 extern void sh_rect_transform(shape_t *shape); | 35 extern void sh_rect_transform(shape_t *shape); |
39 extern void sh_rect_draw(shape_t *shape, cairo_t *cr); | 36 extern void sh_rect_draw(shape_t *shape, cairo_t *cr); |
40 extern void sh_rect_set(shape_t *shape, co_aix x, co_aix y, | 37 extern void sh_rect_set(shape_t *shape, co_aix x, co_aix y, |
41 co_aix w, co_aix h, co_aix rx, co_aix ry); | 38 co_aix w, co_aix h, co_aix rx, co_aix ry); |
42 | 39 |