16using SliderMarkFunc =
StringID(
int nmarks,
int mark,
int value);
17void DrawSliderWidget(
Rect r,
int min_value,
int max_value,
int nmarks,
int value, SliderMarkFunc *mark_func);
22 int tmp_value = value;
23 if (!
ClickSliderWidget(r, pt, min_value, max_value, nmarks, tmp_value))
return false;
All geometry types in OpenTTD.
void DrawSliderWidget(Rect r, int min_value, int max_value, int nmarks, int value, SliderMarkFunc *mark_func)
Draw a slider widget with knob at given value.
bool ClickSliderWidget(Rect r, Point pt, int min_value, int max_value, int nmarks, int &value)
Handle click on a slider widget to change the value.
Types related to strings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
Coordinates of a point in 2D.
Specification of a rectangle with absolute coordinates of all edges.