mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Capture mouse for the slider component.
This commit is contained in:
@@ -11,11 +11,14 @@ namespace ftxui {
|
||||
// float max = 100.f,
|
||||
// float increment = (max - min) * 0.05f);
|
||||
|
||||
template<class T> // T = {int, float}
|
||||
ComponentPtr Slider(std::wstring label,
|
||||
int* value,
|
||||
int min,
|
||||
int max,
|
||||
int increment);
|
||||
T* value,
|
||||
T min,
|
||||
T max,
|
||||
T increment);
|
||||
|
||||
|
||||
} // namespace ftxui
|
||||
|
||||
#endif /* end of include guard: FTXUI_COMPONENT_SLIDER_HPP */
|
||||
|
Reference in New Issue
Block a user