diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2007-06-04 23:51:48 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2007-06-04 23:51:48 +0000 |
| commit | b265acbd45dc5bcad1ebf1c11bb97821cfa4ad90 (patch) | |
| tree | 5c953803f3ff0347af69ac63c78278ae2798f77c /render/render.h | |
| parent | f5e08ae50f28be0e5e436613648098de3f4b7a75 (diff) | |
allow users of obrender to change the ellipsize mode of text textures
Diffstat (limited to 'render/render.h')
| -rw-r--r-- | render/render.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/render/render.h b/render/render.h index c13894aa..7a3e5965 100644 --- a/render/render.h +++ b/render/render.h @@ -85,6 +85,14 @@ typedef enum { RR_JUSTIFY_RIGHT } RrJustify; +/* Put middle first so it's the default */ +typedef enum { + RR_ELLIPSIZE_MIDDLE, + RR_ELLIPSIZE_NONE, + RR_ELLIPSIZE_START, + RR_ELLIPSIZE_END +} RrEllipsizeMode; + typedef enum { RR_FONTWEIGHT_LIGHT, RR_FONTWEIGHT_NORMAL, @@ -128,6 +136,7 @@ struct _RrTextureText { guchar shadow_alpha; gboolean shortcut; /*!< Underline a character */ guint shortcut_pos; /*!< Position in bytes of the character to underline */ + RrEllipsizeMode ellipsize; }; struct _RrPixmapMask { |
