34 typedef std::variant<std::monostate, neogfx::glyph_text, neogfx::multiline_glyph_text> glyph_text_t;
46 void set_font(optional_font
const& aFont)
override;
73 mutable glyph_text_t iGlyphText;
80 optional_text_format iTextAppearance;
bool has_text_format() const override
void set_size_hint(const size_hint &aSizeHint) override
bool has_text_color() const override
neogfx::size_policy size_policy() const override
void set_text(i_string const &aText) override
bool multi_line() const override
text_widget(i_layout &aLayout, std::string const &aText=std::string{}, text_widget_type aType=text_widget_type::SingleLine, text_widget_flags aFlags=text_widget_flags::None)
void paint(i_graphics_context &aGc) const override
void set_font(optional_font const &aFont) override
text_widget(std::string const &aText=std::string{}, text_widget_type aType=text_widget_type::SingleLine, text_widget_flags aFlags=text_widget_flags::None)
void set_text_format(const optional_text_format &aTextAppearance) override
size minimum_size(optional_size const &aAvailableSpace=optional_size{}) const override
text_widget(i_widget &aParent, std::string const &aText=std::string{}, text_widget_type aType=text_widget_type::SingleLine, text_widget_flags aFlags=text_widget_flags::None)
void set_flags(text_widget_flags aFlags) override
i_string const & text() const override
void set_alignment(neogfx::alignment aAlignment, bool aUpdateLayout=true) override
color text_color() const override
size size_hint_extent() const
void set_text_color(const optional_color &aTextColor) override
neogfx::text_format text_format() const override
text_widget_flags flags() const override
neogfx::alignment alignment() const override
bool visible() const override
#define define_event(name, declName,...)