2 #include <mof/Color.hpp>
3 #include <mof/Rectangle.hpp>
5 #include <boost/variant.hpp>
6 #include <mof/widget/flow_layout.hpp>
18 mof::Color4f font_color;
20 text_node() {}// do nothing
28 Rectangle<float> t_rect;
29 image_node() : width(0), height(0) {}// do nothing
33 struct new_line_node{};
38 //{{{ layout_start_node
39 struct layout_start_node{};
42 struct layout_end_node
45 flow_layout::xalign xalign;
46 flow_layout::yalign yalign;
49 : width(0), height(0),
50 xalign(flow_layout::XALIGN_LEFT),
51 yalign(flow_layout::YALIGN_TOP)
55 typedef boost::variant<text_node, image_node, new_line_node, end_node, layout_start_node, layout_end_node> node;
58 TEXT = 0, IMAGE, NEW_LINE, END, LAYOUT_START, LAYOUT_END
64 void set_text(const mof::tstring& text);
66 bool has_next_node() const;
70 std::unique_ptr<impl> pimpl_;