Declaration of the 2-dimensional vector class.
File : SpritePreview.hpp License: MIT Author : GitHub Copilot Date : 14/01/2026.
Component for dropdown menu selection.
int zIndex
Rendering order.
int selectedIndex
Currently selected option.
Vec2f position
Position of the dropdown.
std::function< void(int)> onSelect
Callback when option selected.
bool isOpen
Is dropdown menu open.
std::vector< std::string > options
Available options.
uint8_t hoverColor[3]
RGB hover color.
Vec2f size
Size of the dropdown button.
int hoveredIndex
Currently hovered option.
std::string getSelected() const
Get currently selected option text.
uint8_t textColor[3]
RGB text color.
uint8_t bgColor[3]
RGB background color.