14#include <egt/detail/meta.h>
16#include <egt/imageholder.h>
17#include <egt/textwidget.h>
53 explicit Label(
const std::string& text = {},
54 const AlignFlags& text_align = default_text_align())
noexcept;
63 const AlignFlags& text_align = default_text_align()) noexcept;
71 const std::
string& text = {},
72 const AlignFlags& text_align = default_text_align())
noexcept;
81 const std::string& text,
83 const AlignFlags& text_align = default_text_align()) noexcept;
113 EGT_NODISCARD
Size min_size_hint() const override;
117 void set_parent(
Widget* parent) override;
Alignment flags.
Definition widgetflags.h:379
A Frame is a Widget that has children widgets.
Definition frame.h:45
A Label that displays text.
Definition label.h:41
Label(const std::string &text, const Rect &rect, const AlignFlags &text_align=default_text_align()) noexcept
Label(Label &&) noexcept=default
Label(const Label &)=delete
static AlignFlags default_text_align()
Change text align.
Label & operator=(const Label &)=delete
static void default_text_align(const AlignFlags &align)
Change default text align.
Label(const std::string &text={}, const AlignFlags &text_align=default_text_align()) noexcept
Label(Serializer::Properties &props, bool is_derived) noexcept
Label(Frame &parent, const std::string &text, const Rect &rect, const AlignFlags &text_align=default_text_align()) noexcept
Drawing interface for 2D graphics.
Definition painter.h:45
Color palette that contains a 2 dimensional array of colors.
Definition palette.h:40
Abstract base serializer class.
Definition serialize.h:34
std::list< std::tuple< std::string, std::string, Serializer::Attributes > > Properties
Definition serialize.h:47
A widget with text and text related properties.
Definition textwidget.h:33
EGT framework namespace.
Definition animation.h:24