Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
bar_slider.h File Reference

Custom slider widget. More...

#include "utils/types.h"
#include "utils/ui.h"
#include <gtk/gtk.h>
Include dependency graph for bar_slider.h:

Go to the source code of this file.

Data Structures

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

Macros

#define BAR_SLIDER_WIDGET_TYPE   (bar_slider_widget_get_type ())
 
#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.
 

Enumerations

enum  BarSliderType { BAR_SLIDER_TYPE_NORMAL , BAR_SLIDER_TYPE_PORT_MULTIPLIER , BAR_SLIDER_TYPE_CONTROL_PORT }
 Type of slider. More...
 

Functions

 G_DECLARE_FINAL_TYPE (BarSliderWidget, bar_slider_widget, Z, BAR_SLIDER_WIDGET, GtkWidget) typedef struct Port Port
 
BarSliderWidget_bar_slider_widget_new (BarSliderType type, float(*get_val)(void *), void(*set_val)(void *, float), 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)
 Creates a bar slider widget for floats.
 

Detailed Description

Custom slider widget.

Definition in file bar_slider.h.

Macro Definition Documentation

◆ BAR_SLIDER_WIDGET_TYPE

#define BAR_SLIDER_WIDGET_TYPE   (bar_slider_widget_get_type ())

Definition at line 18 of file bar_slider.h.