From b265acbd45dc5bcad1ebf1c11bb97821cfa4ad90 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 4 Jun 2007 23:51:48 +0000 Subject: allow users of obrender to change the ellipsize mode of text textures --- render/render.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'render/render.h') 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 { -- cgit v1.2.3