Zrythm
a highly automated and intuitive digital audio workstation
|
Draggable slider to adjust an amount (such as a percentage). More...
#include <gui/widgets/bar_slider.h>
Data Fields | |
GtkWidget | parent_instance |
int | decimals |
Number of decimal points to show. | |
char | suffix [600] |
The suffix to show after the value (eg "%" for percentages). | |
char | prefix [600] |
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. | |
PangoLayout * | layout |
Cache layout. | |
float | last_real_val |
Cache of text extents. | |
int | last_width_extent |
int | last_height_extent |
char | last_extent_str [3000] |
Draggable slider to adjust an amount (such as a percentage).
It displays the value in the background as a progress bar.
Definition at line 54 of file bar_slider.h.
int BarSliderWidget::convert_to_percentage |
Multiply the value by 100 when showing it.
Definition at line 130 of file bar_slider.h.
int BarSliderWidget::decimals |
Number of decimal points to show.
Definition at line 59 of file bar_slider.h.
GtkGestureDrag* BarSliderWidget::drag |
Used when dragging.
Definition at line 105 of file bar_slider.h.
int BarSliderWidget::editable |
Whether the user can change the value.
Definition at line 127 of file bar_slider.h.
GenericFloatSetter BarSliderWidget::end_setter |
Float setter for drag end.
Definition at line 90 of file bar_slider.h.
GenericFloatGetter BarSliderWidget::getter |
Float getter.
Definition at line 78 of file bar_slider.h.
int BarSliderWidget::height |
Widget height.
Definition at line 99 of file bar_slider.h.
int BarSliderWidget::hover |
Whether hovering or not.
Definition at line 117 of file bar_slider.h.
GenericFloatSetter BarSliderWidget::init_setter |
Float setter for drag begin.
Definition at line 87 of file bar_slider.h.
char BarSliderWidget::last_extent_str[3000] |
Definition at line 141 of file bar_slider.h.
int BarSliderWidget::last_height_extent |
Definition at line 140 of file bar_slider.h.
float BarSliderWidget::last_real_val |
Cache of text extents.
Definition at line 138 of file bar_slider.h.
int BarSliderWidget::last_width_extent |
Definition at line 139 of file bar_slider.h.
double BarSliderWidget::last_x |
Used in gesture drag.
Definition at line 108 of file bar_slider.h.
PangoLayout* BarSliderWidget::layout |
Cache layout.
Definition at line 133 of file bar_slider.h.
float BarSliderWidget::max |
Maximum value.
Definition at line 69 of file bar_slider.h.
float BarSliderWidget::min |
Minimum value.
Definition at line 72 of file bar_slider.h.
UiDragMode BarSliderWidget::mode |
Update mode.
Definition at line 114 of file bar_slider.h.
void* BarSliderWidget::object |
Object to call get/set with.
Definition at line 102 of file bar_slider.h.
GtkWidget BarSliderWidget::parent_instance |
Definition at line 56 of file bar_slider.h.
Port* BarSliderWidget::port |
Port, if control port.
Definition at line 93 of file bar_slider.h.
char BarSliderWidget::prefix[600] |
The prefix to show before the value.
Definition at line 66 of file bar_slider.h.
GenericFloatSetter BarSliderWidget::setter |
Float setter.
Definition at line 84 of file bar_slider.h.
int BarSliderWidget::show_value |
Whether to show the value in text or just the prefix + suffix.
Definition at line 124 of file bar_slider.h.
GenericFloatGetter BarSliderWidget::snapped_getter |
Float getter for snapped values (optional).
Definition at line 81 of file bar_slider.h.
double BarSliderWidget::start_x |
Used in gesture drag.
Definition at line 111 of file bar_slider.h.
char BarSliderWidget::suffix[600] |
The suffix to show after the value (eg "%" for percentages).
Definition at line 63 of file bar_slider.h.
BarSliderType BarSliderWidget::type |
The type of slider.
Definition at line 120 of file bar_slider.h.
int BarSliderWidget::width |
Widget width.
Definition at line 96 of file bar_slider.h.
float BarSliderWidget::zero |
Zero point.
Definition at line 75 of file bar_slider.h.