Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
preroll_count_selector.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
7#ifndef __GUI_WIDGETS_PREROLL_COUNT_SELECTOR_H__
8#define __GUI_WIDGETS_PREROLL_COUNT_SELECTOR_H__
9
16#include <gtk/gtk.h>
17
18#define PREROLL_COUNT_SELECTOR_WIDGET_TYPE \
19 (preroll_count_selector_widget_get_type ())
20G_DECLARE_FINAL_TYPE (
22 preroll_count_selector_widget,
23 Z,
24 PREROLL_COUNT_SELECTOR_WIDGET,
25 GtkBox)
26
27
33typedef enum PrerollCountSelectorType
34{
36 PREROLL_COUNT_SELECTOR_METRONOME_COUNTIN,
37
40 PREROLL_COUNT_SELECTOR_RECORD_PREROLL,
42
43typedef struct _PrerollCountSelectorWidget
44{
45 GtkBox parent_instance;
46
48
49 GtkToggleButton * none_toggle;
50 gulong none_toggle_id;
51 GtkToggleButton * one_bar_toggle;
52 gulong one_bar_toggle_id;
53 GtkToggleButton * two_bars_toggle;
54 gulong two_bars_toggle_id;
55 GtkToggleButton * four_bars_toggle;
56 gulong four_bars_toggle_id;
57
59
65
70#endif
PrerollCountSelectorType
PrerollCountSelectorWidget * preroll_count_selector_widget_new(PrerollCountSelectorType type)
Creates a PrerollCountSelectorWidget.