gui/widgets/bar_slider.h file

Custom slider widget.

Contents

Classes

struct _BarSliderWidget
Draggable slider to adjust an amount (such as a percentage).

Enums

enum BarSliderType { BAR_SLIDER_TYPE_NORMAL, BAR_SLIDER_TYPE_PORT_MULTIPLIER }
Type of slider.
enum BarSliderUpdateMode { BAR_SLIDER_UPDATE_MODE_RELATIVE, BAR_SLIDER_UPDATE_MODE_CURSOR }
Defines how drag_update will work.

Typedefs

using BarSliderType = enum BarSliderType
Type of slider.
using BarSliderUpdateMode = enum BarSliderUpdateMode
Defines how drag_update will work.
using BarSliderWidget = struct _BarSliderWidget
Draggable slider to adjust an amount (such as a percentage).

Functions

auto _bar_slider_widget_new(BarSliderType type, float(*)(void*) get_val, void(*)(void*, float) set_val, void* object, Port* dest, float min, float max, int w, int h, float zero, int convert_to_percentage, int decimals, BarSliderUpdateMode mode, const char* prefix, const char* suffix) -> BarSliderWidget*
Creates a bar slider widget for floats.

Defines

#define bar_slider_widget_new(getter, setter, obj, min, max, w, h, zero, dec, mode, suffix)
Helper to create a bar slider widget.