From e1f53890da6e4be2555a9e17a52edcc03d53656b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Jun 2015 23:32:48 +0100 Subject: Basic HAlign / HPosition support. --- src/text_node.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/text_node.h') diff --git a/src/text_node.h b/src/text_node.h index 2e1b9ac4..7cd73bb9 100644 --- a/src/text_node.h +++ b/src/text_node.h @@ -42,12 +42,16 @@ class TextNode public: /** Construct a default text node */ TextNode () - : v_position (0) - , v_align (TOP) + : h_position (0) + , h_align (HALIGN_LEFT) + , v_position (0) + , v_align (VALIGN_TOP) {} TextNode (boost::shared_ptr node, int tcr); + float h_position; + HAlign h_align; float v_position; VAlign v_align; std::string text; -- cgit v1.2.3