struct mola::gui::SliderInt
Overview
An integer slider in [min_value, max_value].
nanogui : same as SliderFloat but with integer snapping. ImGui : ImGui::SliderInt.
#include <GuiWidgetDescription.h> struct SliderInt { // fields std::string label; int initial_value = 0; int min_value = 0; int max_value = 100; std::function<void(int)> on_change; int fixed_width = 0; };
Fields
int fixed_width = 0
0 = auto (nanogui: setFixedWidth on slider)