diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-03 23:32:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-03 23:32:48 +0100 |
| commit | e1f53890da6e4be2555a9e17a52edcc03d53656b (patch) | |
| tree | ff148f4d8dc54b1a09fa21ca743fce261f01c021 /src/text_node.h | |
| parent | 47b52fb54f302d5faf93a19ae2fe28fa610f96ca (diff) | |
Basic HAlign / HPosition support.
Diffstat (limited to 'src/text_node.h')
| -rw-r--r-- | src/text_node.h | 8 |
1 files changed, 6 insertions, 2 deletions
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<const cxml::Node> node, int tcr); + float h_position; + HAlign h_align; float v_position; VAlign v_align; std::string text; |
