14#include <egt/button.h>
15#include <egt/detail/meta.h>
39 explicit RadioBox(
const std::string& text = {},
40 const Rect& rect = {})
noexcept;
48 const std::string& text = {},
49 const Rect& rect = {})
noexcept;
Alignment flags.
Definition widgetflags.h:379
A Frame is a Widget that has children widgets.
Definition frame.h:45
Drawing interface for 2D graphics.
Definition painter.h:45
Boolean RadioBox.
Definition radiobox.h:32
RadioBox(Frame &parent, const std::string &text={}, const Rect &rect={}) noexcept
void draw(Painter &painter, const Rect &rect) override
Draw the widget.
void radiobox_align(const AlignFlags &align)
Set the alignment of the image relative to the text.
Definition radiobox.h:58
void draw_switch(Painter &painter, const Rect &handle) const override
EGT_NODISCARD AlignFlags radiobox_align() const
Get the image alignment.
Definition radiobox.h:66
RadioBox(const std::string &text={}, const Rect &rect={}) noexcept
T & align(T &widget, const AlignFlags &a)
Helper to set alignment of a widget.
Definition widgetflags.h:624
EGT framework namespace.
Definition animation.h:24