Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_pad.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2020-2022 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_CHORD_PAD_H__
14#define __GUI_WIDGETS_CHORD_PAD_H__
15
16#include "gtk_wrapper.h"
17
24#define CHORD_PAD_WIDGET_TYPE (chord_pad_widget_get_type ())
26 ChordPadWidget,
27 chord_pad_widget,
28 Z,
29 CHORD_PAD_WIDGET,
30 GtkWidget)
31
32
35typedef struct _ChordPadWidget
36{
37 GtkWidget parent_instance;
38
40 GtkOverlay * overlay;
41
43 GtkButton * btn;
44
45 GtkGestureDrag * btn_drag;
46
47 double drag_start_x;
48 double drag_start_y;
49
51 bool drag_started;
52
53 GtkBox * btn_box;
54 GtkButton * edit_chord_btn;
55 GtkButton * invert_prev_btn;
56 GtkButton * invert_next_btn;
57
59 int chord_idx;
60} ChordPadWidget;
61
65ChordPadWidget *
67
71void
72chord_pad_widget_refresh (ChordPadWidget * self, int idx);
73
78#endif
void chord_pad_widget_refresh(ChordPadWidget *self, int idx)
Sets the chord index on the chord widget.
ChordPadWidget * chord_pad_widget_new(void)
Creates a chord widget.
G_DECLARE_FINAL_TYPE(ChordPadWidget, chord_pad_widget, Z, CHORD_PAD_WIDGET, GtkWidget) typedef struct _ChordPadWidget
Single chord pad.
Definition chord_pad.h:25