7#ifndef __GUI_WIDGETS_BALANCE_CONTROL_H__
8#define __GUI_WIDGETS_BALANCE_CONTROL_H__
10#include "common/utils/color.h"
11#include "common/utils/types.h"
12#include "gui/backend/gtk_widgets/gtk_wrapper.h"
16#define BALANCE_CONTROL_WIDGET_TYPE (balance_control_widget_get_type ())
19 balance_control_widget,
21 BALANCE_CONTROL_WIDGET,
24using BalanceControlWidget =
struct _BalanceControlWidget
26 GtkWidget parent_instance;
27 GtkGestureDrag * drag;
39 GtkWindow * tooltip_win;
40 GtkLabel * tooltip_label;
54 float balance_at_start;
59 GtkPopoverMenu * popover_menu;
BalanceControlWidget * balance_control_widget_new(GenericFloatGetter getter, GenericFloatSetter setter, void *object, ControlPort *port, int height)
Creates a new BalanceControl widget and binds it to the given value.
std::function< float()> GenericFloatGetter
Getter prototype for float values.
std::function< void(float)> GenericFloatSetter
Setter prototype for float values.