LayoutChild

class LayoutChild(**properties: Any)

Superclasses: Object

Subclasses: ConstraintLayoutChild, FixedLayoutChild, GridLayoutChild, 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

class LayoutChild
get_child_widget() Widget

Retrieves the GtkWidget associated to the given layout_child.

get_layout_manager() LayoutManager

Retrieves the GtkLayoutManager instance that created the given layout_child.

Properties

class LayoutChild
props.child_widget: Widget

The widget that is associated to the GtkLayoutChild instance.

props.layout_manager: LayoutManager

The layout manager that created the GtkLayoutChild instance.

Fields

class LayoutChild
parent_instance