diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-06-10 14:43:14 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-06-30 23:42:44 +0100 |
commit | e7b2c530c512523242270caaaa8e0a15bf99e492 (patch) | |
tree | 2e79284ccd0f77253a40112fe9a4c2c00d31405d /gtk/gtklayoutmanager.h | |
parent | e07098da03353c026cd90c58064d79c036ab912c (diff) | |
download | gtk+-e7b2c530c512523242270caaaa8e0a15bf99e492.tar.gz |
Propagate rooting and unrooting widgets to layout managers
Layout managers may need to get access to data attached to the root of a
scene graph.
Diffstat (limited to 'gtk/gtklayoutmanager.h')
-rw-r--r-- | gtk/gtklayoutmanager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtklayoutmanager.h b/gtk/gtklayoutmanager.h index 06659ee70e..3066dc5660 100644 --- a/gtk/gtklayoutmanager.h +++ b/gtk/gtklayoutmanager.h @@ -42,6 +42,10 @@ G_DECLARE_DERIVABLE_TYPE (GtkLayoutManager, gtk_layout_manager, GTK, LAYOUT_MANA * @layout_child_type: the type of #GtkLayoutChild used by this layout manager * @create_layout_child: a virtual function, used to create a #GtkLayoutChild * meta object for the layout properties + * @root: a virtual function, called when the widget using the layout + * manager is attached to a #GtkRoot + * @unroot: a virtual function, called when the widget using the layout + * manager is detached from a #GtkRoot * * The `GtkLayoutManagerClass` structure contains only private data, and * should only be accessed through the provided API, or when subclassing @@ -77,6 +81,9 @@ struct _GtkLayoutManagerClass GtkWidget *widget, GtkWidget *for_child); + void (* root) (GtkLayoutManager *manager); + void (* unroot) (GtkLayoutManager *manager); + /*< private >*/ gpointer _padding[16]; }; |