Capture mouse for the slider component.

This commit is contained in:
ArthurSonzogni
2021-05-01 18:13:56 +02:00
parent 0af8201023
commit eb399d20c5
15 changed files with 157 additions and 35 deletions

View File

@@ -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 */