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
13#include "gtk_wrapper.h"
14
15#define CLIP_EDITOR_WIDGET_TYPE (clip_editor_widget_get_type ())
16G_DECLARE_FINAL_TYPE (
18 clip_editor_widget,
19 Z,
20 CLIP_EDITOR_WIDGET,
21 GtkBox)
22
23#define MW_CLIP_EDITOR MW_BOT_DOCK_EDGE->clip_editor
24
25typedef struct _ClipEditorInnerWidget ClipEditorInnerWidget;
26typedef struct _EditorSelectionInfoWidget EditorSelectionInfoWidget;
27typedef struct _EditorToolbarWidget EditorToolbarWidget;
28typedef struct _AudioClipEditorWidget AudioClipEditorWidget;
29typedef struct ClipEditor ClipEditor;
30
37typedef struct _ClipEditorWidget
38{
39 GtkBox parent_instance;
40
41 GtkStack * stack;
42
43 GtkBox * main_box;
44 // EditorSelectionInfoWidget * editor_selections;
45 EditorToolbarWidget * editor_toolbar;
46 ClipEditorInnerWidget * clip_editor_inner;
47
49 AdwStatusPage * no_selection_page;
51
52void
53clip_editor_widget_setup (ClipEditorWidget * self);
54
58void
60
68void
70 ClipEditorWidget * self,
71 bool center_contents_if_already_at_start);
72
74clip_editor_widget_new (void);
75
76#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:38
AdwStatusPage * no_selection_page
Page to show when no clip is selected.
Definition clip_editor.h:49
Clip editor serializable backend.
Definition clip_editor.h:37
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.