Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
volume.h
1/*
2 * SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
7#ifndef __GUI_WIDGETS_VOLUME_H__
8#define __GUI_WIDGETS_VOLUME_H__
9
10#include <gtk/gtk.h>
11
12typedef struct Port Port;
13
20#define VOLUME_WIDGET_TYPE (volume_widget_get_type ())
21G_DECLARE_FINAL_TYPE (VolumeWidget, volume_widget, Z, VOLUME_WIDGET, GtkDrawingArea)
22
23typedef struct _VolumeWidget
24{
25 GtkDrawingArea parent_instance;
26
29
30 bool hover;
31
32 GtkGestureDrag * drag;
33
34 double last_x;
35 double last_y;
37
38void
39volume_widget_setup (VolumeWidget * self, Port * port);
40
42volume_widget_new (Port * port);
43
48#endif
Must ONLY be created via port_new()
Definition port.h:139
Port * port
Control port to change.
Definition volume.h:28