GtkLayoutChild — An object containing layout properties
GtkWidget * | child-widget | Read / Write / Construct Only |
GtkLayoutManager * | layout-manager | Read / Write / Construct Only |
GObject ╰── GtkLayoutChild ├── GtkGridLayoutChild ├── GtkOverlayLayoutChild ├── GtkConstraintLayoutChild ╰── GtkFixedLayoutChild
#include <gtk/gtk.h>
GtkLayoutChild is the base class for objects that are meant to hold layout properties. If a GtkLayoutManager has per-child properties, like their packing type, or the horizontal and vertical span, or the icon name, then the layout manager should use a GtkLayoutChild implementation to store those properties.
A GtkLayoutChild instance is only ever valid while a widget is part of a layout.
GtkLayoutManager *
gtk_layout_child_get_layout_manager (GtkLayoutChild *layout_child
);
Retrieves the GtkLayoutManager instance that created the given layout_child
.
layout_child |
GtkWidget *
gtk_layout_child_get_child_widget (GtkLayoutChild *layout_child
);
Retrieves the GtkWidget associated to the given layout_child
.
layout_child |
typedef struct _GtkLayoutChild GtkLayoutChild;
struct GtkLayoutChildClass { };
“child-widget”
property“child-widget” GtkWidget *
The widget that is associated to the GtkLayoutChild instance.
Owner: GtkLayoutChild
Flags: Read / Write / Construct Only
“layout-manager”
property“layout-manager” GtkLayoutManager *
The layout manager that created the GtkLayoutChild instance.
Owner: GtkLayoutChild
Flags: Read / Write / Construct Only
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkLayoutChild.html