Skip to content

Gtk.LayoutChild

class — extends GObject.Object

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

get_child_widget

def get_child_widget(self) -> Widget

Retrieves the GtkWidget associated to the given layout_child.

get_layout_manager

def get_layout_manager(self) -> LayoutManager

Retrieves the GtkLayoutManager instance that created the given layout_child.

Properties

child_widget

child_widget: Widget  # read/write

The widget that is associated to the GtkLayoutChild instance.

layout_manager

layout_manager: LayoutManager  # read/write

The layout manager that created the GtkLayoutChild instance.