Clutter.BinLayout

g Clutter.BinLayout Clutter.BinLayout Clutter.LayoutManager Clutter.LayoutManager Clutter.LayoutManager->Clutter.BinLayout GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Clutter.LayoutManager GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

Clutter.LayoutManager (13), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (x_align, y_align)

add (child, x_align, y_align)

get_alignment (child)

set_alignment (child, x_align, y_align)

Virtual Methods

Inherited:

Clutter.LayoutManager (9), GObject.Object (7)

Properties

Name

Type

Flags

Short Description

x-align

Clutter.BinAlignment

r/w

Default horizontal alignment for the actors inside the layout manager deprecated

y-align

Clutter.BinAlignment

r/w

Default vertical alignment for the actors inside the layout manager deprecated

Signals

Inherited:

Clutter.LayoutManager (1), GObject.Object (1)

Fields

Inherited:

Clutter.LayoutManager (1), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Clutter.LayoutManager

r

Class Details

class Clutter.BinLayout(**kwargs)
Bases:

Clutter.LayoutManager

Abstract:

No

Structure:

Clutter.BinLayoutClass

The Clutter.BinLayout structure contains only private data and should be accessed using the provided API

New in version 1.2.

classmethod new(x_align, y_align)
Parameters:
Returns:

the newly created layout manager

Return type:

Clutter.LayoutManager

Creates a new Clutter.BinLayout layout manager

New in version 1.2.

add(child, x_align, y_align)
Parameters:

Adds a Clutter.Actor to the container using self and sets the alignment policies for it

This function is equivalent to Clutter.Container.add_actor() and Clutter.LayoutManager.child_set_property() but it does not require a pointer to the Clutter.Container associated to the Clutter.BinLayout

New in version 1.2.

Deprecated since version 1.12: Use Clutter.Actor.add_child() instead.

get_alignment(child)
Parameters:

child (Clutter.Actor or None) – a child of container

Returns:

x_align:

return location for the horizontal alignment policy

y_align:

return location for the vertical alignment policy

Return type:

(x_align: Clutter.BinAlignment, y_align: Clutter.BinAlignment)

Retrieves the horizontal and vertical alignment policies for a child of self

If child is None the default alignment policies will be returned instead

New in version 1.2.

Deprecated since version 1.12: Use the Clutter.Actor :x-align and the Clutter.Actor :y-align properties of Clutter.Actor instead.

set_alignment(child, x_align, y_align)
Parameters:

Sets the horizontal and vertical alignment policies to be applied to a child of self

If child is None then the x_align and y_align values will be set as the default alignment policies

New in version 1.2.

Deprecated since version 1.12: Use the Clutter.Actor :x-align and Clutter.Actor :y-align properties of Clutter.Actor instead.

Property Details

Clutter.BinLayout.props.x_align
Name:

x-align

Type:

Clutter.BinAlignment

Default Value:

Clutter.BinAlignment.CENTER

Flags:

READABLE, WRITABLE

The default horizontal alignment policy for actors managed by the Clutter.BinLayout

New in version 1.2.

Deprecated since version 1.12: Use the Clutter.Actor :x-expand and the Clutter.Actor :x-align properties on Clutter.Actor instead.

Clutter.BinLayout.props.y_align
Name:

y-align

Type:

Clutter.BinAlignment

Default Value:

Clutter.BinAlignment.CENTER

Flags:

READABLE, WRITABLE

The default vertical alignment policy for actors managed by the Clutter.BinLayout

New in version 1.2.

Deprecated since version 1.12: Use the Clutter.Actor :y-expand and the Clutter.Actor :y-align properties on Clutter.Actor instead.