_BarSliderWidget struct

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

Contents

It displays the value in the background as a progress bar.

Public variables

int decimals
Number of decimal points to show.
char suffix
The suffix to show after the value (eg "%" for percentages).
char prefix
The prefix to show before the value.
float max
Maximum value.
float min
Minimum value.
float zero
Zero point.
GenericFloatGetter getter
Float getter.
GenericFloatGetter snapped_getter
Float getter for snapped values (optional).
GenericFloatSetter setter
Float setter.
GenericFloatSetter init_setter
Float setter for drag begin.
GenericFloatSetter end_setter
Float setter for drag end.
Port* port
Port, if control port.
int width
Widget width.
int height
Widget height.
void* object
Object to call get/set with.
GtkGestureDrag* drag
Used when dragging.
double last_x
Used in gesture drag.
double start_x
Used in gesture drag.
UiDragMode mode
Update mode.
int hover
Whether hovering or not.
BarSliderType type
The type of slider.
int show_value
Whether to show the value in text or just the prefix + suffix.
int editable
Whether the user can change the value.
int convert_to_percentage
Multiply the value by 100 when showing it.
int dest_index
Destination index for the destination multipliers of the port.
int src_index
Source index on the destination port.
PangoLayout* layout
Cache layout.