MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / wasChecked

Method wasChecked

source/windowing/StarButtonGroup.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void ButtonGroup::wasChecked(ButtonWidget* self) {
73 for (auto const& pair : m_buttons) {
74 if (pair.second != self)
75 pair.second->setChecked(false);
76 }
77
78 if (m_callback)
79 m_callback(self);
80}
81
82bool ButtonGroup::toggle() const {
83 return m_toggle;

Callers 1

checkMethod · 0.80

Calls 1

setCheckedMethod · 0.80

Tested by

no test coverage detected