:right-sidebar: True LayoutChild =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: LayoutChild(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.Gtk.ConstraintLayoutChild`, :class:`~gi.repository.Gtk.FixedLayoutChild`, :class:`~gi.repository.Gtk.GridLayoutChild`, :class:`~gi.repository.Gtk.OverlayLayoutChild` ``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. Methods ------- .. rst-class:: interim-class .. class:: LayoutChild :no-index: .. method:: get_child_widget() -> ~gi.repository.Gtk.Widget Retrieves the ``GtkWidget`` associated to the given ``layout_child``\. .. method:: get_layout_manager() -> ~gi.repository.Gtk.LayoutManager Retrieves the ``GtkLayoutManager`` instance that created the given ``layout_child``\. Properties ---------- .. rst-class:: interim-class .. class:: LayoutChild :no-index: .. attribute:: props.child_widget :type: ~gi.repository.Gtk.Widget The type of the None singleton. .. attribute:: props.layout_manager :type: ~gi.repository.Gtk.LayoutManager The type of the None singleton. Fields ------ .. rst-class:: interim-class .. class:: LayoutChild :no-index: .. attribute:: parent_instance