gui/widgets/bar_slider.h file

Contents

Custom slider widget.

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, BAR_SLIDER_TYPE_CONTROL_PORT }
Type of slider.

Typedefs

using BarSliderType = enum BarSliderType
Type of slider.
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, UiDragMode 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.