Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
port_connections_popover.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_PORT_CONNECTIONS_POPOVER_H__
14#define __GUI_WIDGETS_PORT_CONNECTIONS_POPOVER_H__
15
16#include "gtk_wrapper.h"
17
18#define PORT_CONNECTIONS_POPOVER_WIDGET_TYPE \
19 (port_connections_popover_widget_get_type ())
20G_DECLARE_FINAL_TYPE (
22 port_connections_popover_widget,
23 Z,
24 PORT_CONNECTIONS_POPOVER_WIDGET,
25 GtkPopover)
26
27typedef struct Port Port;
28typedef struct _PortSelectorPopoverWidget PortSelectorPopoverWidget;
29
36typedef struct _PortConnectionsPopoverWidget
37{
38 GtkPopover parent_instance;
39
42
44 GtkBox * main_box;
45
47 GtkLabel * title;
48
50 GtkBox * ports_box;
51
53 GtkButton * add;
54
55 // PortSelectorPopoverWidget * port_selector_popover;
57
66
73void
76 Port * port);
77
82#endif
PortConnectionsPopoverWidget * port_connections_popover_widget_new(GtkWidget *owner)
Creates the popover.
void port_connections_popover_widget_refresh(PortConnectionsPopoverWidget *self, Port *port)
Refreshes the popover.
GtkBox * ports_box
Box containing the ports.
GtkLabel * title
Title to show at the top, e.g.
GtkBox * main_box
The main vertical box containing everything.
GtkButton * add
Button to add connection.
Must ONLY be created via port_new()
Definition port.h:136