Mercurial > MadButterfly
comparison include/mb_shapes.h @ 292:7270e368ee98
Add more text API
author | wycc |
---|---|
date | Sun, 01 Feb 2009 02:14:45 +0800 |
parents | 137a73822d48 |
children | a171b94582ae |
comparison
equal
deleted
inserted
replaced
291:137a73822d48 | 292:7270e368ee98 |
---|---|
107 int flag; | 107 int flag; |
108 cairo_surface_t *surface; | 108 cairo_surface_t *surface; |
109 } mb_text_t; | 109 } mb_text_t; |
110 | 110 |
111 extern void sh_text_set_style(shape_t *shape,int begin,int end,mb_textstyle_t *format); | 111 extern void sh_text_set_style(shape_t *shape,int begin,int end,mb_textstyle_t *format); |
112 extern void sh_text_set_color(shape_t *shape, unsigned color); | |
113 extern void sh_text_set_bold(shape_t *shape, int bold); | |
114 extern void sh_text_set_italic(shape_t *shape, int italic); | |
115 extern void sh_text_set_underline(shape_t *shape, int underline); | |
116 extern void sh_text_set_font(shape_t *shape, char *family); | |
112 static inline void mb_textstyle_init(mb_textstyle_t *style) | 117 static inline void mb_textstyle_init(mb_textstyle_t *style) |
113 { | 118 { |
114 style->property = 0; | 119 style->property = 0; |
115 } | 120 } |
116 extern void mb_textstyle_set_font(mb_textstyle_t *style, char *font); | 121 extern void mb_textstyle_set_font(mb_textstyle_t *style, char *font); |