Declaration of the 2-dimensional vector class.
File : SpritePreview.hpp License: MIT Author : GitHub Copilot Date : 14/01/2026.
Component for a draggable slider control.
void setNormalized(float normalized)
Set value from normalized (0-1)
uint8_t handleColor[3]
RGB color of handle.
Vec2f position
Position of the slider.
float currentValue
Current value.
Vec2f size
Size of the slider.
uint8_t trackColor[3]
RGB color of track.
float minValue
Minimum value.
bool isDragging
Is currently being dragged.
float maxValue
Maximum value.
int zIndex
Rendering order.
std::function< void(float)> onChange
Callback when value changes.
float getNormalized() const
Get normalized value (0-1)
uint8_t fillColor[3]
RGB color of filled part.