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

Function CheckBoxRegion

Siv3D/src/Siv3D/SimpleGUI/SivSimpleGUI.cpp:402–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 }
401
402 RectF CheckBoxRegion(const StringView label, const Vec2& pos, const Optional<double>& _width)
403 {
404 const Font& font = GetFont();
405 const double width = _width.value_or_eval([&](){ return Math::Ceil(CheckBoxPadding * 3 + CheckBoxSize + font(label).region().w); });
406 return{ pos, width, UnitSize };
407 }
408
409 RectF CheckBoxRegionAt(const StringView label, const Vec2& center, const Optional<double>& _width)
410 {

Callers 1

CheckBoxFunction · 0.85

Calls 2

CeilFunction · 0.85
regionMethod · 0.45

Tested by

no test coverage detected