|
ZenitUI
Retained-mode C++20 UI framework
|
A select-style dropdown with a popup list. More...
#include "Common.hpp"#include "Layout.hpp"#include "Button.hpp"#include "Text.hpp"#include "ScrollView.hpp"Go to the source code of this file.
Classes | |
| class | ZenitUI::UI::Dropdown |
| A single-select dropdown. More... | |
A select-style dropdown with a popup list.
The dropdown is a Vertical container with two children:
The list is always a portal, so it draws above everything else and is not clipped by ancestors. It is shown / hidden by toggling its enabled flag and opacity, and its size is computed dynamically in arrange from the available space below the trigger, with automatic flip above if there is not enough room.
Interaction: