mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Add SliderWithCallback
component (#938)
Add SliderOption::on_change. Useful to observe a change to the value. Signed-off-by: Mikołaj Lubiak <lubiak@proton.me> Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:

committed by
ArthurSonzogni

parent
d5099afa18
commit
024ce3908e
@@ -227,6 +227,7 @@ struct SliderOption {
|
||||
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`.
|
||||
|
Reference in New Issue
Block a user