summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-06-07 20:14:53 +0200
committerDave Davenport <qball@gmpclient.org>2017-06-07 20:16:14 +0200
commit9fe67c1822887d4ef0a00175513b5e4660b84283 (patch)
tree3ce7cae878df16f7f23fe7d328049dca46784542 /include
parent8c27289d95d4f37b9db0feeae1ab42863c0b44cf (diff)
[TextBox] Remove TB_LEFT/CENTER/RIGHT replace with xalign/yalign.
Diffstat (limited to 'include')
-rw-r--r--include/widgets/textbox.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h
index 57e92911..ec6f85f0 100644
--- a/include/widgets/textbox.h
+++ b/include/widgets/textbox.h
@@ -65,6 +65,7 @@ typedef struct
guint blink_timeout;
double yalign;
+ double xalign;
PangoFontMetrics *metrics;
int left_offset;
@@ -79,9 +80,6 @@ typedef enum
{
TB_AUTOHEIGHT = 1 << 0,
TB_AUTOWIDTH = 1 << 1,
- TB_LEFT = 1 << 16,
- TB_RIGHT = 1 << 17,
- TB_CENTER = 1 << 18,
TB_EDITABLE = 1 << 19,
TB_MARKUP = 1 << 20,
TB_WRAP = 1 << 21,
@@ -121,6 +119,8 @@ typedef enum
* @param flags #TextboxFlags indicating the type of textbox.
* @param tbft #TextBoxFontType current state of textbox.
* @param text intial text to display.
+ * @param xalign Set the Xalign value.
+ * @param yalign set the yalign value.
*
* Create a new textbox widget.
*
@@ -128,7 +128,7 @@ typedef enum
* @returns a new #textbox
*/
textbox* textbox_create ( WidgetType type, const char *name, TextboxFlags flags,
- TextBoxFontType tbft, const char *text );
+ TextBoxFontType tbft, const char *text, double xalign, double yalign );
/**
* @param tb Handle to the textbox
* @param tbft The style of font to render.