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