Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
bind_cc_dialog.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_BIND_CC_DIALOG_H__
14#define __GUI_WIDGETS_BIND_CC_DIALOG_H__
15
16#include "utils/types.h"
17
18#include <gtk/gtk.h>
19
20#define BIND_CC_DIALOG_WIDGET_TYPE (bind_cc_dialog_widget_get_type ())
21G_DECLARE_FINAL_TYPE (
22 BindCcDialogWidget,
23 bind_cc_dialog_widget,
24 Z,
25 BIND_CC_DIALOG_WIDGET,
26 GtkDialog)
27
28
37typedef struct _BindCcDialogWidget
38{
39 GtkDialog parent_instance;
40 GtkButton * cancel_btn;
41 GtkButton * ok_btn;
42 GtkLabel * lbl;
43
46 midi_byte_t cc[3];
47
48 Port * port;
49
52 bool perform_action;
53} BindCcDialogWidget;
54
58BindCcDialogWidget *
59bind_cc_dialog_widget_new (Port * port, bool perform_action);
60
65#endif
uint8_t midi_byte_t
MIDI byte.
Definition types.h:32
BindCcDialogWidget * bind_cc_dialog_widget_new(Port *port, bool perform_action)
Creates an bind_cc dialog widget and displays it.
Must ONLY be created via port_new()
Definition port.h:139
Custom types.