Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
port_connection_row.h
1/*
2 * SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
7#ifndef __GUI_WIDGETS_PORT_CONNECTION_ROW_H__
8#define __GUI_WIDGETS_PORT_CONNECTION_ROW_H__
9
10#include <gtk/gtk.h>
11
12#define PORT_CONNECTION_ROW_WIDGET_TYPE (port_connection_row_widget_get_type ())
13G_DECLARE_FINAL_TYPE (
15 port_connection_row_widget,
16 Z,
17 PORT_CONNECTION_ROW_WIDGET,
18 GtkBox)
19
20typedef struct _KnobWidget KnobWidget;
21typedef struct _BarSliderWidget BarSliderWidget;
22typedef struct _PortConnectionsPopoverWidget PortConnectionsPopoverWidget;
23typedef struct PortConnection PortConnection;
24
25typedef struct _PortConnectionRowWidget
26{
27 GtkBox parent_instance;
28
29 PortConnection * connection;
30
37
40 GtkOverlay * overlay;
41
42 GtkButton * delete_btn;
43
46
49
54port_connection_row_widget_new (
56 const PortConnection * connection,
57 bool is_input);
58
59#endif
Draggable slider to adjust an amount (such as a percentage).
Definition bar_slider.h:55
BarSliderWidget * slider
The slider.
GtkOverlay * overlay
Overlay to hold the slider and other widgets.
bool is_input
If this is 1, src is the input port and dest is the current one, otherwise dest is the output port an...
A connection between two ports.