Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
selection_info.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
14#ifndef __GUI_WIDGETS_SELECTION_INFO_H__
15#define __GUI_WIDGETS_SELECTION_INFO_H__
16
17#include "utils/ui.h"
18
19#include <gtk/gtk.h>
20
21#define SELECTION_INFO_WIDGET_TYPE (selection_info_widget_get_type ())
23 SelectionInfoWidget,
24 selection_info_widget,
25 Z,
26 SELECTION_INFO_WIDGET,
27 GtkGrid)
28
29#define SELECTION_INFO_WIDGET_GET_PRIVATE(self) \
30 SelectionInfoWidgetPrivate * sel_inf_prv = \
31 selection_info_widget_get_private (Z_SELECTION_INFO_WIDGET (self));
32
39typedef struct _SelectionInfoWidgetPrivate
40{
41 GtkWidget * labels[14];
42 GtkWidget * widgets[14];
43 int num_items;
44} SelectionInfoWidgetPrivate;
45
46typedef struct _SelectionInfoWidgetClass
47{
48 GtkGridClass parent_class;
50
51#define selection_info_widget_add_info_with_text(_self, _txt, _widget) \
52 GtkWidget * _lbl = gtk_label_new (_txt); \
53 gtk_widget_set_visible (_lbl, 1); \
54 selection_info_widget_add_info (_self, _lbl, GTK_WIDGET (_widget));
55
65void
67 SelectionInfoWidget * self,
68 GtkWidget * label,
69 GtkWidget * widget);
70
74void
75selection_info_widget_clear (SelectionInfoWidget * self);
76
80SelectionInfoWidgetPrivate *
81selection_info_widget_get_private (SelectionInfoWidget * self);
82
83#endif
SelectionInfoWidgetPrivate * selection_info_widget_get_private(SelectionInfoWidget *self)
Returns the private.
G_DECLARE_DERIVABLE_TYPE(SelectionInfoWidget, selection_info_widget, Z, SELECTION_INFO_WIDGET, GtkGrid) typedef struct _SelectionInfoWidgetPrivate
A widget to display info about the current arranger selection, to be used in the TimelineArrangerWidg...
void selection_info_widget_clear(SelectionInfoWidget *self)
Destroys all children.
void selection_info_widget_add_info(SelectionInfoWidget *self, GtkWidget *label, GtkWidget *widget)
Adds a piece of info to the grid.
User Interface utils.