Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
channel_sends_expander.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2020 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
12
13#ifndef __GUI_WIDGETS_CHANNEL_SENDS_EXPANDER_H__
14#define __GUI_WIDGETS_CHANNEL_SENDS_EXPANDER_H__
15
17#include "gui/backend/gtk_widgets/gtk_wrapper.h"
18
19#define CHANNEL_SENDS_EXPANDER_WIDGET_TYPE \
20 (channel_sends_expander_widget_get_type ())
21G_DECLARE_FINAL_TYPE (
23 channel_sends_expander_widget,
24 Z,
25 CHANNEL_SENDS_EXPANDER_WIDGET,
26 ExpanderBoxWidget);
27
28class Track;
29typedef struct _ChannelSendWidget ChannelSendWidget;
30
36
37enum class ChannelSendsExpanderPosition
38{
39 CSE_POSITION_CHANNEL,
40 CSE_POSITION_INSPECTOR,
41};
42
47using ChannelSendsExpanderWidget = struct _ChannelSendsExpanderWidget
48{
49 ExpanderBoxWidget parent_instance;
50
51 ChannelSendsExpanderPosition position;
52
54 GtkScrolledWindow * scroll;
55 GtkViewport * viewport;
56
58 GtkBox * box;
59
61 std::vector<GtkBox *> strip_boxes;
62
64 std::vector<ChannelSendWidget *> slots;
65
67 Track * track;
68};
69
73void
75
79void
82 ChannelSendsExpanderPosition position,
83 Track * track);
84
88
89#endif
Expander box.
void channel_sends_expander_widget_refresh(ChannelSendsExpanderWidget *self)
Refreshes each field.
struct _ChannelSendsExpanderWidget { ExpanderBoxWidget parent_instance; ChannelSendsExpanderPosition position; GtkScrolledWindow *scroll; GtkViewport * viewport; GtkBox *box; std::vector< GtkBox * > strip_boxes; std::vector< ChannelSendWidget * > slots; Track *track;} ChannelSendsExpanderWidget
A TwoColExpanderBoxWidget for showing the ports in the InspectorWidget.
void channel_sends_expander_widget_setup(ChannelSendsExpanderWidget *self, ChannelSendsExpanderPosition position, Track *track)
Sets up the ChannelSendsExpanderWidget.