This commit is contained in:
ArthurSonzogni
2024-10-29 08:01:19 +01:00
parent 27388d456f
commit a23879a273
4 changed files with 128 additions and 98 deletions

View File

@@ -222,13 +222,13 @@ struct ResizableSplitOption {
template <typename T>
struct SliderOption {
Ref<T> value;
std::function<void(T)> callback = nullptr;
ConstRef<T> min = T(0);
ConstRef<T> max = T(100);
ConstRef<T> increment = (max() - min()) / 20;
Direction direction = Direction::Right;
Color color_active = Color::White;
Color color_inactive = Color::GrayDark;
std::function<void()> on_change; ///> Called when `value` is updated.
};
// Parameter pack used by `WindowOptions::render`.