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

Function ListBox

Siv3D/src/Siv3D/SimpleGUI/SivSimpleGUI.cpp:1819–1824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1817 }
1818
1819 bool ListBox(ListBoxState& state, const Vec2& pos, const double width, const double height, const bool enabled)
1820 {
1821 const Font& font = SimpleGUI::GetFont();
1822 const RectF rect{ pos, Max(width, 40.0), Max<double>(height, font.height() + (ListBoxFrameThickness * 2)) };
1823 return ListBoxAt(state, rect.center(), width, height, enabled);
1824 }
1825
1826 bool ListBoxAt(ListBoxState& state, const Vec2& center, const double width, const double height, const bool enabled)
1827 {

Callers

nothing calls this directly

Calls 4

ListBoxAtFunction · 0.85
centerMethod · 0.80
MaxFunction · 0.50
heightMethod · 0.45

Tested by

no test coverage detected