Mercurial > MadButterfly
diff include/mb_shapes.h @ 462:af4b506ad56f
Add backend layer to seperate the backend with the MBAF. Currently, X is the only backend. If we have more than one backend, we need to modify the Makefile to sleect the backend or implement a backend selection mechanism in the runtime.
author | wycc@122-116-38-188.HINET-IP.hinet.net |
---|---|
date | Wed, 28 Oct 2009 02:39:02 +0800 |
parents | bb4f651090bf |
children | 4254eaa699d0 |
line wrap: on
line diff
--- a/include/mb_shapes.h Wed Oct 28 02:35:08 2009 +0800 +++ b/include/mb_shapes.h Wed Oct 28 02:39:02 2009 +0800 @@ -176,6 +176,9 @@ { style->property = 0; } +/*! \brief Get the dimension of the text + */ +extern void sh_text_get_size(shape_t *sh, int *w, int *h); extern void mb_textstyle_set_font(mb_textstyle_t *style, char *font); static inline char *mb_textstyle_get_font(mb_textstyle_t *style) { @@ -230,7 +233,6 @@ extern void mb_text_set_text(mb_text_t *text, char *string,int begin,int end); extern void mb_text_get_text(mb_text_t *text, int begin,int end, char *string); - /* @} */ /*! \defgroup shape_rect Shape of Rectangle