Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
port_connections_tree.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_PORT_CONNECTIONS_TREE_H__
11#define __GUI_WIDGETS_PORT_CONNECTIONS_TREE_H__
12
13#include <gtk/gtk.h>
14
15typedef struct Port Port;
16
17#define MW_PORT_CONNECTIONS_TREE (MW_PORT_CONNECTIONS->bindings_tree)
18
19#define PORT_CONNECTIONS_TREE_WIDGET_TYPE \
20 (port_connections_tree_widget_get_type ())
21G_DECLARE_FINAL_TYPE (
22 PortConnectionsTreeWidget,
23 port_connections_tree_widget,
24 Z,
25 PORT_CONNECTIONS_TREE_WIDGET,
26 GtkBox)
27
28
34typedef struct _PortConnectionsTreeWidget
35{
36 GtkBox parent_instance;
37
38 GtkScrolledWindow * scroll;
39
40 /* The tree views */
41 GtkTreeView * tree;
42 GtkTreeModel * tree_model;
43
45 Port * src_port;
46 Port * dest_port;
47
49 GtkPopoverMenu * popover_menu;
50} PortConnectionsTreeWidget;
51
55void
56port_connections_tree_widget_refresh (PortConnectionsTreeWidget * self);
57
61PortConnectionsTreeWidget *
63
68#endif
void port_connections_tree_widget_refresh(PortConnectionsTreeWidget *self)
Refreshes the tree model.
PortConnectionsTreeWidget * port_connections_tree_widget_new(void)
Instantiates a new PortConnectionsTreeWidget.
Must ONLY be created via port_new()
Definition port.h:139