Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
selection_info.h File Reference

Widget for showing info about the current selection. More...

#include "utils/ui.h"
#include <gtk/gtk.h>
Include dependency graph for selection_info.h:

Go to the source code of this file.

Data Structures

struct  SelectionInfoWidgetClass
 

Macros

#define SELECTION_INFO_WIDGET_TYPE   (selection_info_widget_get_type ())
 
#define SELECTION_INFO_WIDGET_GET_PRIVATE(self)
 
#define selection_info_widget_add_info_with_text(_self, _txt, _widget)
 

Functions

 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 TimelineArrangerWidget and in the and PianoRoll.
 
void selection_info_widget_add_info (SelectionInfoWidget *self, GtkWidget *label, GtkWidget *widget)
 Adds a piece of info to the grid.
 
void selection_info_widget_clear (SelectionInfoWidget *self)
 Destroys all children.
 
SelectionInfoWidgetPrivate * selection_info_widget_get_private (SelectionInfoWidget *self)
 Returns the private.
 

Variables

 SelectionInfoWidgetPrivate
 

Detailed Description

Widget for showing info about the current selection.

Definition in file selection_info.h.

Macro Definition Documentation

◆ selection_info_widget_add_info_with_text

#define selection_info_widget_add_info_with_text (   _self,
  _txt,
  _widget 
)
Value:
GtkWidget * _lbl = gtk_label_new (_txt); \
gtk_widget_set_visible (_lbl, 1); \
selection_info_widget_add_info (_self, _lbl, GTK_WIDGET (_widget));

Definition at line 64 of file selection_info.h.

◆ SELECTION_INFO_WIDGET_GET_PRIVATE

#define SELECTION_INFO_WIDGET_GET_PRIVATE (   self)
Value:
SelectionInfoWidgetPrivate * sel_inf_prv = \
selection_info_widget_get_private (Z_SELECTION_INFO_WIDGET (self));

◆ SELECTION_INFO_WIDGET_TYPE

#define SELECTION_INFO_WIDGET_TYPE   (selection_info_widget_get_type ())

Definition at line 34 of file selection_info.h.

Function Documentation

◆ G_DECLARE_DERIVABLE_TYPE()

G_DECLARE_DERIVABLE_TYPE ( SelectionInfoWidget  ,
selection_info_widget  ,
,
SELECTION_INFO_WIDGET  ,
GtkGrid   
)

A widget to display info about the current arranger selection, to be used in the TimelineArrangerWidget and in the and PianoRoll.

Definition at line 35 of file selection_info.h.

◆ selection_info_widget_add_info()

void selection_info_widget_add_info ( SelectionInfoWidget *  self,
GtkWidget *  label,
GtkWidget *  widget 
)

Adds a piece of info to the grid.

Parameters
labelThe label widget to place on top.

Usually this will be GtkLabel.

Parameters
widgetThe Widget to place on the bot that will reflect the information.

Variable Documentation

◆ SelectionInfoWidgetPrivate

SelectionInfoWidgetPrivate

Definition at line 57 of file selection_info.h.