8#ifndef __GUI_WIDGETS_EDITABLE_LABEL_H__
9#define __GUI_WIDGETS_EDITABLE_LABEL_H__
13#include "gtk_wrapper.h"
15#define EDITABLE_LABEL_WIDGET_TYPE (editable_label_widget_get_type ())
18 editable_label_widget,
20 EDITABLE_LABEL_WIDGET,
26typedef struct _EditableLabelWidget
28 GtkWidget parent_instance;
34 GtkPopover * foreign_popover;
55 guint select_region_source_id;
88 EditableLabelWidget * self,
void editable_label_widget_setup(EditableLabelWidget *self, void *object, GenericStringGetter getter, GenericStringSetter setter)
Sets up an existing EditableLabelWidget.
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.
EditableLabelWidget * editable_label_widget_new(void *object, GenericStringGetter getter, GenericStringSetter setter, int width)
Returns a new instance of EditableLabelWidget.
void(* GenericStringSetter)(void *object, const char *val)
Setter prototype for float values.
const char *(* GenericStringGetter)(void *object)
Getter prototype for strings.