Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
volume.h
1// SPDX-FileCopyrightText: © 2021, 2024 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#ifndef __GUI_WIDGETS_VOLUME_H__
5#define __GUI_WIDGETS_VOLUME_H__
6
7#include "gui/backend/gtk_widgets/gtk_wrapper.h"
8
9class ControlPort;
10
16
17#define VOLUME_WIDGET_TYPE (volume_widget_get_type ())
18G_DECLARE_FINAL_TYPE (VolumeWidget, volume_widget, Z, VOLUME_WIDGET, GtkDrawingArea)
19
20using VolumeWidget = struct _VolumeWidget
21{
22 GtkDrawingArea parent_instance;
23
25 ControlPort * port;
26
27 bool hover;
28
29 GtkGestureDrag * drag;
30
31 double last_x;
32 double last_y;
33};
34
35void
36volume_widget_setup (VolumeWidget * self, ControlPort * port);
37
38VolumeWidget *
39volume_widget_new (ControlPort * port);
40
44
45#endif