MCPcopy Create free account
hub / github.com/Siv3D/OpenSiv3D / Button

Function Button

Siv3D/src/Siv3D/SimpleGUI/SivSimpleGUI.cpp:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 }
140
141 bool Button(const StringView label, const Vec2& pos, const Optional<double>& _width, const bool enabled)
142 {
143 const Vec2 center = ButtonRegion(label, pos, _width).center();
144 return ButtonAt(label, center, _width, enabled);
145 }
146
147 bool ButtonAt(const StringView label, const Vec2& center, const Optional<double>& _width, const bool enabled)
148 {

Callers 5

MainFunction · 0.85
MainFunction · 0.85
MainFunction · 0.85
Button1Function · 0.85
Button2Function · 0.85

Calls 3

ButtonRegionFunction · 0.85
ButtonAtFunction · 0.85
centerMethod · 0.80

Tested by

no test coverage detected