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_wrapper.h"
11
12
typedef
struct
Port
Port
;
13
20
#define VOLUME_WIDGET_TYPE (volume_widget_get_type ())
21
G_DECLARE_FINAL_TYPE (
VolumeWidget
, volume_widget, Z, VOLUME_WIDGET, GtkDrawingArea)
22
23
typedef struct _VolumeWidget
24
{
25
GtkDrawingArea parent_instance;
26
28
Port
*
port
;
29
30
bool
hover;
31
32
GtkGestureDrag * drag;
33
34
double
last_x;
35
double
last_y;
36
}
VolumeWidget
;
37
38
void
39
volume_widget_setup (
VolumeWidget
* self,
Port
* port);
40
41
VolumeWidget
*
42
volume_widget_new (
Port
* port);
43
48
#endif
Port
Must ONLY be created via port_new()
Definition
port.h:136
VolumeWidget
Definition
volume.h:24
VolumeWidget::port
Port * port
Control port to change.
Definition
volume.h:28
gui
widgets
volume.h
Generated by
1.11.0