Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
toolbox.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019, 2021-2022, 2024 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
7
8#ifndef __GUI_WIDGETS_TOOLBOX_H__
9#define __GUI_WIDGETS_TOOLBOX_H__
10
11#include "gui/backend/gtk_widgets/gtk_wrapper.h"
12
18
19#define TOOLBOX_WIDGET_TYPE (toolbox_widget_get_type ())
20G_DECLARE_FINAL_TYPE (ToolboxWidget, toolbox_widget, Z, TOOLBOX_WIDGET, GtkBox)
21
22#define MW_TOOLBOX MAIN_WINDOW->toolbox
23
24typedef struct _ToolboxWidget
25{
26 GtkBox parent_instance;
27 GtkToggleButton * select_mode;
28 GtkToggleButton * edit_mode;
29 GtkToggleButton * cut_mode;
30 GtkToggleButton * erase_mode;
31 GtkToggleButton * ramp_mode;
32 GtkToggleButton * audition_mode;
33 GtkImage * select_img;
34
35 gulong select_handler_id;
36 gulong edit_handler_id;
37 gulong cut_handler_id;
38 gulong erase_handler_id;
39 gulong ramp_handler_id;
40 gulong audition_handler_id;
42
47void
49
53
54#endif
void toolbox_widget_refresh(ToolboxWidget *self)
Sets the toolbox toggled states after deactivating the callbacks.