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

Function CheckBox

Siv3D/src/Siv3D/SimpleGUI/SivSimpleGUI.cpp:416–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 bool CheckBox(bool& checked, const StringView label, const Vec2& pos, const Optional<double>& _width, const bool enabled)
417 {
418 const Vec2 center = CheckBoxRegion(label, pos, _width).center();
419 return CheckBoxAt(checked, label, center, _width, enabled);
420 }
421
422 bool CheckBoxAt(bool& checked, const StringView label, const Vec2& center, const Optional<double>& _width, const bool enabled)
423 {

Callers 5

MainFunction · 0.85
MainFunction · 0.85
MainFunction · 0.85
CheckBox1Function · 0.85
CheckBox2Function · 0.85

Calls 3

CheckBoxRegionFunction · 0.85
CheckBoxAtFunction · 0.85
centerMethod · 0.80

Tested by

no test coverage detected