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

Method id

source/windowing/StarButtonGroup.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int ButtonGroup::id(ButtonWidget* button) const {
48 if (m_buttonIds.contains(button))
49 return m_buttonIds.get(button);
50 else
51 return NoButton;
52}
53
54ButtonWidget* ButtonGroup::checkedButton() const {
55 for (auto const& pair : m_buttons) {

Callers 1

buttonGroupIdMethod · 0.45

Calls 2

containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected