6#ifndef EGT_BUTTONGROUP_H
7#define EGT_BUTTONGROUP_H
14#include <egt/detail/meta.h>
46 explicit ButtonGroup(
bool imperative =
false,
bool exclusive =
true) noexcept;
60 void exclusive(
bool exclusive);
65 EGT_NODISCARD
bool exclusive() const;
74 void imperative(
bool imperative);
79 EGT_NODISCARD
bool imperative() const;
84 void add(const std::shared_ptr<
Button>& button);
109 void checked_state_change(
Button& button,
bool checked) const;
112 using ButtonArray = std::vector<std::weak_ptr<
Button>>;
117 ButtonArray m_buttons;
122 bool m_exclusive{
false};
127 bool m_imperative{
true};
EGT framework namespace.
Definition animation.h:24