Gtk.LayoutChild

g GObject.Object GObject.Object Gtk.LayoutChild Gtk.LayoutChild GObject.Object->Gtk.LayoutChild

Subclasses:

Gtk.ConstraintLayoutChild, Gtk.FixedLayoutChild, Gtk.GridLayoutChild, Gtk.OverlayLayoutChild

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_child_widget ()

get_layout_manager ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

child-widget

Gtk.Widget

r/w/co

layout-manager

Gtk.LayoutManager

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Gtk.LayoutChild(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Gtk.LayoutChildClass

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.

get_child_widget()[source]
Returns:

a GtkWidget

Return type:

Gtk.Widget

Retrieves the GtkWidget associated to the given self.

get_layout_manager()[source]
Returns:

a GtkLayoutManager

Return type:

Gtk.LayoutManager

Retrieves the GtkLayoutManager instance that created the given self.

Property Details

Gtk.LayoutChild.props.child_widget
Name:

child-widget

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The widget that is associated to the GtkLayoutChild instance.

Gtk.LayoutChild.props.layout_manager
Name:

layout-manager

Type:

Gtk.LayoutManager

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The layout manager that created the GtkLayoutChild instance.