14#include <egt/detail/meta.h>
39 explicit Form(
const std::string& title = {})
noexcept;
45 explicit Form(
Frame& parent,
const std::string& title = {})
noexcept;
70 void add_option(
const std::string& name,
const std::shared_ptr<T>& widget)
72 auto p = std::dynamic_pointer_cast<Widget>(widget);
79 void add_option(
const std::string& name,
const std::shared_ptr<Widget>& widget);
87 auto p = std::dynamic_pointer_cast<Widget>(widget);
106 if (detail::change_if_diff<>(m_name_align,
align))
115 if (detail::change_if_diff<>(m_group_align,
align))
140 AlignFlags m_name_align{AlignFlag::center_vertical | AlignFlag::left};
143 AlignFlags m_group_align{AlignFlag::bottom | AlignFlag::left};
Alignment flags.
Definition widgetflags.h:379
Positions and sizes widgets by Orientation.
Definition sizer.h:49
A Frame is a Widget that has children widgets.
Definition frame.h:45
std::list< std::tuple< std::string, std::string, Serializer::Attributes > > Properties
Definition serialize.h:47
T & align(T &widget, const AlignFlags &a)
Helper to set alignment of a widget.
Definition widgetflags.h:624
int DefaultDim
Define the default dimension type used for geometry.
Definition geometry.h:34
EGT framework namespace.
Definition animation.h:24