| 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 | { |