Mercurial > MadButterfly
comparison include/mb_shapes.h @ 472:4254eaa699d0 Android_Skia
Declare functions that should be implemented by Skia graphic engine
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 12 Nov 2009 21:32:52 +0800 |
parents | af4b506ad56f |
children | ba64f928542b |
comparison
equal
deleted
inserted
replaced
471:e98ae1407ca2 | 472:4254eaa699d0 |
---|---|
9 | 9 |
10 #include "mb_graph_engine.h" | 10 #include "mb_graph_engine.h" |
11 #include "mb_types.h" | 11 #include "mb_types.h" |
12 #include "mb_redraw_man.h" | 12 #include "mb_redraw_man.h" |
13 #include "mb_img_ldr.h" | 13 #include "mb_img_ldr.h" |
14 #include <pango/pangocairo.h> | |
15 | 14 |
16 /*! \page define_shape How to Define Shapes | 15 /*! \page define_shape How to Define Shapes |
17 * | 16 * |
18 * A shape implementation must include | 17 * A shape implementation must include |
19 * - rdman_shape_*_new() | 18 * - rdman_shape_*_new() |
69 int float_arg_cnt); | 68 int float_arg_cnt); |
70 extern void sh_path_transform(shape_t *shape); | 69 extern void sh_path_transform(shape_t *shape); |
71 extern void sh_path_draw(shape_t *shape, mbe_t *cr); | 70 extern void sh_path_draw(shape_t *shape, mbe_t *cr); |
72 /* @} */ | 71 /* @} */ |
73 | 72 |
73 #ifdef SH_TEXT | |
74 /*! \defgroup shape_text Shape of Text | 74 /*! \defgroup shape_text Shape of Text |
75 * @{ | 75 * @{ |
76 */ | 76 */ |
77 extern shape_t *rdman_shape_text_new(redraw_man_t *rdman, | 77 extern shape_t *rdman_shape_text_new(redraw_man_t *rdman, |
78 const char *txt, co_aix x, co_aix y, | 78 const char *txt, co_aix x, co_aix y, |
90 extern void sh_text_set_text(shape_t *shape, const char *txt); | 90 extern void sh_text_set_text(shape_t *shape, const char *txt); |
91 | 91 |
92 extern void sh_text_transform(shape_t *shape); | 92 extern void sh_text_transform(shape_t *shape); |
93 extern void sh_text_draw(shape_t *shape, mbe_t *cr); | 93 extern void sh_text_draw(shape_t *shape, mbe_t *cr); |
94 /* @} */ | 94 /* @} */ |
95 #endif | |
95 | 96 |
96 /*! \defgroup mb_text_t Shape of Text | 97 /*! \defgroup mb_text_t Shape of Text |
97 * @{ | 98 * @{ |
98 */ | 99 */ |
99 #define TEXTSTYLE_BOLD 1 | 100 #define TEXTSTYLE_BOLD 1 |