comparison src/shapes.h @ 88:dd813dcc232c

New example, calculator.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 23 Aug 2008 15:26:47 +0800
parents 9ab15ebc9061
children 7dfa4e60b26d
comparison
equal deleted inserted replaced
87:8dfebf76cb59 88:dd813dcc232c
25 extern void sh_path_draw(shape_t *shape, cairo_t *cr); 25 extern void sh_path_draw(shape_t *shape, cairo_t *cr);
26 26
27 27
28 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,
29 co_aix font_size, cairo_font_face_t *face); 29 co_aix font_size, cairo_font_face_t *face);
30 extern void sh_text_set_text(shape_t *shape, const char *txt);
30 extern void sh_text_transform(shape_t *shape); 31 extern void sh_text_transform(shape_t *shape);
31 extern void sh_text_draw(shape_t *shape, cairo_t *cr); 32 extern void sh_text_draw(shape_t *shape, cairo_t *cr);
32 33
33 extern shape_t *sh_rect_new(co_aix x, co_aix y, co_aix w, co_aix h, 34 extern shape_t *sh_rect_new(co_aix x, co_aix y, co_aix w, co_aix h,
34 co_aix rx, co_aix ry); 35 co_aix rx, co_aix ry);