Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
clip_editor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
8#ifndef __GUI_WIDGETS_CLIP_EDITOR_H__
9#define __GUI_WIDGETS_CLIP_EDITOR_H__
10
11#include <adwaita.h>
12#include <gtk/gtk.h>
13
14#define CLIP_EDITOR_WIDGET_TYPE (clip_editor_widget_get_type ())
15G_DECLARE_FINAL_TYPE (
17 clip_editor_widget,
18 Z,
19 CLIP_EDITOR_WIDGET,
20 GtkBox)
21
22#define MW_CLIP_EDITOR MW_BOT_DOCK_EDGE->clip_editor
23
24typedef struct _ClipEditorInnerWidget ClipEditorInnerWidget;
25typedef struct _EditorSelectionInfoWidget EditorSelectionInfoWidget;
26typedef struct _EditorToolbarWidget EditorToolbarWidget;
27typedef struct _AudioClipEditorWidget AudioClipEditorWidget;
28typedef struct ClipEditor ClipEditor;
29
36typedef struct _ClipEditorWidget
37{
38 GtkBox parent_instance;
39
40 GtkStack * stack;
41
42 GtkBox * main_box;
43 // EditorSelectionInfoWidget * editor_selections;
44 EditorToolbarWidget * editor_toolbar;
45 ClipEditorInnerWidget * clip_editor_inner;
46
48 AdwStatusPage * no_selection_page;
50
51void
52clip_editor_widget_setup (ClipEditorWidget * self);
53
57void
59
67void
69 ClipEditorWidget * self,
70 bool center_contents_if_already_at_start);
71
73clip_editor_widget_new (void);
74
75#endif
The piano roll widget is the whole space inside the clip editor tab when a MIDI region is selected.
The ClipEditorWidget shows in the Clip Editor / Piano Roll tab of the bottom panel,...
Definition clip_editor.h:37
AdwStatusPage * no_selection_page
Page to show when no clip is selected.
Definition clip_editor.h:48
Clip editor serializable backend.
Definition clip_editor.h:39
A widget for showing info about the current PianoRollSelections.
The PianoRoll toolbar in the top.
void clip_editor_widget_navigate_to_region_start(ClipEditorWidget *self, bool center_contents_if_already_at_start)
Navigates to the region start point.
void clip_editor_widget_on_region_changed(ClipEditorWidget *self)
To be called when the region changes.