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, 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, 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.
#define bar_slider_widget_new_port_connection(conn, prefix)
Wrapper.