Zrythm v2.0.0-DEV
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
12
13#ifndef __GUI_WIDGETS_BIND_CC_DIALOG_H__
14#define __GUI_WIDGETS_BIND_CC_DIALOG_H__
15
16#include "common/utils/types.h"
17#include "gui/backend/gtk_widgets/gtk_wrapper.h"
18
19#define BIND_CC_DIALOG_WIDGET_TYPE (bind_cc_dialog_widget_get_type ())
20G_DECLARE_FINAL_TYPE (
22 bind_cc_dialog_widget,
23 Z,
24 BIND_CC_DIALOG_WIDGET,
25 GtkDialog)
26
27class Port;
28
34
38using BindCcDialogWidget = struct _BindCcDialogWidget
39{
40 GtkDialog parent_instance;
41 GtkButton * cancel_btn;
42 GtkButton * ok_btn;
43 GtkLabel * lbl;
44
47 midi_byte_t cc[3];
48
49 Port * port;
50
53 bool perform_action;
54};
55
60bind_cc_dialog_widget_new (Port * port, bool perform_action);
61
65
66#endif
uint8_t midi_byte_t
MIDI byte.
Definition types.h:55
BindCcDialogWidget * bind_cc_dialog_widget_new(Port *port, bool perform_action)
Creates an bind_cc dialog widget and displays it.
struct _BindCcDialogWidget { GtkDialog parent_instance; GtkButton *cancel_btn; GtkButton *ok_btn; GtkLabel * lbl; midi_byte_t cc[3]; Port *port; bool perform_action;} BindCcDialogWidget
The bind_cc dialog.