|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Draggable slider to adjust an amount (such as a percentage). More...
#include <src/gui/backend/gtk_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 53 of file bar_slider.h.
| int BarSliderWidget::convert_to_percentage |
Multiply the value by 100 when showing it.
Definition at line 129 of file bar_slider.h.
| int BarSliderWidget::decimals |
Number of decimal points to show.
Definition at line 58 of file bar_slider.h.
| GtkGestureDrag* BarSliderWidget::drag |
Used when dragging.
Definition at line 104 of file bar_slider.h.
| int BarSliderWidget::editable |
Whether the user can change the value.
Definition at line 126 of file bar_slider.h.
| GenericFloatSetter BarSliderWidget::end_setter |
Float setter for drag end.
Definition at line 89 of file bar_slider.h.
| GenericFloatGetter BarSliderWidget::getter |
Float getter.
Definition at line 77 of file bar_slider.h.
| int BarSliderWidget::height |
Widget height.
Definition at line 98 of file bar_slider.h.
| int BarSliderWidget::hover |
Whether hovering or not.
Definition at line 116 of file bar_slider.h.
| GenericFloatSetter BarSliderWidget::init_setter |
Float setter for drag begin.
Definition at line 86 of file bar_slider.h.
| char BarSliderWidget::last_extent_str[3000] |
Definition at line 140 of file bar_slider.h.
| int BarSliderWidget::last_height_extent |
Definition at line 139 of file bar_slider.h.
| float BarSliderWidget::last_real_val |
Cache of text extents.
Definition at line 137 of file bar_slider.h.
| int BarSliderWidget::last_width_extent |
Definition at line 138 of file bar_slider.h.
| double BarSliderWidget::last_x |
Used in gesture drag.
Definition at line 107 of file bar_slider.h.
| PangoLayout* BarSliderWidget::layout |
Cache layout.
Definition at line 132 of file bar_slider.h.
| float BarSliderWidget::max |
Maximum value.
Definition at line 68 of file bar_slider.h.
| float BarSliderWidget::min |
Minimum value.
Definition at line 71 of file bar_slider.h.
| UiDragMode BarSliderWidget::mode |
Update mode.
Definition at line 113 of file bar_slider.h.
| void* BarSliderWidget::object |
Object to call get/set with.
Definition at line 101 of file bar_slider.h.
| GtkWidget BarSliderWidget::parent_instance |
Definition at line 55 of file bar_slider.h.
| Port* BarSliderWidget::port |
Port, if control port.
Definition at line 92 of file bar_slider.h.
| char BarSliderWidget::prefix[600] |
The prefix to show before the value.
Definition at line 65 of file bar_slider.h.
| GenericFloatSetter BarSliderWidget::setter |
Float setter.
Definition at line 83 of file bar_slider.h.
| int BarSliderWidget::show_value |
Whether to show the value in text or just the prefix + suffix.
Definition at line 123 of file bar_slider.h.
| GenericFloatGetter BarSliderWidget::snapped_getter |
Float getter for snapped values (optional).
Definition at line 80 of file bar_slider.h.
| double BarSliderWidget::start_x |
Used in gesture drag.
Definition at line 110 of file bar_slider.h.
| char BarSliderWidget::suffix[600] |
The suffix to show after the value (eg "%" for percentages).
Definition at line 62 of file bar_slider.h.
| BarSliderType BarSliderWidget::type |
The type of slider.
Definition at line 119 of file bar_slider.h.
| int BarSliderWidget::width |
Widget width.
Definition at line 95 of file bar_slider.h.
| float BarSliderWidget::zero |
Zero point.
Definition at line 74 of file bar_slider.h.