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

Basic knob widget, taken from Ardour. More...

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

Go to the source code of this file.

Data Structures

struct  KnobWidget
 

Macros

#define KNOB_WIDGET_TYPE   (knob_widget_get_type ())
 
#define knob_widget_new_simple(getter, default_getter, setter, obj, min, max, size, zero)
 
#define knob_widget_new_port(conn, size)
 

Enumerations

enum  KnobType { KNOB_TYPE_NORMAL , KNOB_TYPE_PORT_MULTIPLIER }
 Type of knob. More...
 

Functions

KnobWidget_knob_widget_new (GenericFloatGetter get_val, GenericFloatGetter get_default_val, GenericFloatSetter set_val, void *object, KnobType type, float min, float max, int size, float zero)
 Creates a knob widget with the given options and binds it to the given value.
 

Detailed Description

Basic knob widget, taken from Ardour.

Definition in file knob.h.

Macro Definition Documentation

◆ KNOB_WIDGET_TYPE

#define KNOB_WIDGET_TYPE   (knob_widget_get_type ())

Definition at line 19 of file knob.h.