Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
editable_label.h File Reference
#include "utils/types.h"
#include "gtk_wrapper.h"
Include dependency graph for editable_label.h:

Go to the source code of this file.

Macros

#define EDITABLE_LABEL_WIDGET_TYPE   (editable_label_widget_get_type ())
 

Functions

 G_DECLARE_FINAL_TYPE (EditableLabelWidget, editable_label_widget, Z, EDITABLE_LABEL_WIDGET, GtkWidget) typedef struct _EditableLabelWidget
 A label that shows a popover when clicked.
 
void editable_label_widget_show_popover (EditableLabelWidget *self)
 Shows the popover.
 
void editable_label_widget_show_popover_for_widget (GtkWidget *parent, GtkPopover *popover, void *object, GenericStringGetter getter, GenericStringSetter setter)
 Shows a popover without the need of an editable label.
 
void editable_label_widget_setup (EditableLabelWidget *self, void *object, GenericStringGetter getter, GenericStringSetter setter)
 Sets up an existing EditableLabelWidget.
 
EditableLabelWidget * editable_label_widget_new (void *object, GenericStringGetter getter, GenericStringSetter setter, int width)
 Returns a new instance of EditableLabelWidget.
 

Variables

 EditableLabelWidget
 

Macro Definition Documentation

◆ EDITABLE_LABEL_WIDGET_TYPE

#define EDITABLE_LABEL_WIDGET_TYPE   (editable_label_widget_get_type ())

Definition at line 15 of file editable_label.h.

Function Documentation

◆ editable_label_widget_new()

EditableLabelWidget * editable_label_widget_new ( void * object,
GenericStringGetter getter,
GenericStringSetter setter,
int width )

Returns a new instance of EditableLabelWidget.

Parameters
getterGetter function.
setterSetter function.
objectObject to call get/set with.
widthLabel width in chars.

◆ editable_label_widget_setup()

void editable_label_widget_setup ( EditableLabelWidget * self,
void * object,
GenericStringGetter getter,
GenericStringSetter setter )

Sets up an existing EditableLabelWidget.

Parameters
getterGetter function.
setterSetter function.
objectObject to call get/set with.

◆ editable_label_widget_show_popover_for_widget()

void editable_label_widget_show_popover_for_widget ( GtkWidget * parent,
GtkPopover * popover,
void * object,
GenericStringGetter getter,
GenericStringSetter setter )

Shows a popover without the need of an editable label.

Parameters
popoverA pre-created popover that is a child of parent.

◆ G_DECLARE_FINAL_TYPE()

G_DECLARE_FINAL_TYPE ( EditableLabelWidget ,
editable_label_widget ,
Z ,
EDITABLE_LABEL_WIDGET ,
GtkWidget  )

A label that shows a popover when clicked.

The label.

Popover owned by another widget.

Getter.

Setter.

Object to call get/set with.

Whether this is a temporary widget for just showing the popover.

Multipress for the label.

Definition at line 16 of file editable_label.h.

Variable Documentation

◆ EditableLabelWidget

EditableLabelWidget

Definition at line 56 of file editable_label.h.