diff options
Diffstat (limited to 'include/widgets/textbox.h')
-rw-r--r-- | include/widgets/textbox.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h index 229e34d9..cb9be121 100644 --- a/include/widgets/textbox.h +++ b/include/widgets/textbox.h @@ -43,6 +43,17 @@ * * @{ */ + +/** Cache to hold font descriptions. This it to avoid having to lookup each time. */ +typedef struct TBFontConfig +{ + /** Font description */ + PangoFontDescription *pfd; + /** Font metrics */ + PangoFontMetrics *metrics; + /** height */ + double height; +}TBFontConfig; /** * Internal structure of a textbox widget. * TODO make this internal to textbox @@ -66,7 +77,8 @@ typedef struct double yalign; double xalign; - PangoFontMetrics *metrics; + TBFontConfig *tbfc; + PangoEllipsizeMode emode; // const char *theme_name; |