Clutter.BinLayout¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Default horizontal alignment for the actors inside the layout manager |
||
r/w |
Default vertical alignment for the actors inside the layout manager |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.BinLayout(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.BinLayoutstructure contains only private data and should be accessed using the provided APINew in version 1.2.
- classmethod new(x_align, y_align)¶
- Parameters:
x_align (
Clutter.BinAlignment) – the default alignment policy to be used on the horizontal axisy_align (
Clutter.BinAlignment) – the default alignment policy to be used on the vertical axis
- Returns:
the newly created layout manager
- Return type:
Creates a new
Clutter.BinLayoutlayout managerNew in version 1.2.
- add(child, x_align, y_align)¶
- Parameters:
child (
Clutter.Actor) – aClutter.Actorx_align (
Clutter.BinAlignment) – horizontal alignment policy for childy_align (
Clutter.BinAlignment) – vertical alignment policy for child
Adds a
Clutter.Actorto the container using self and sets the alignment policies for itThis function is equivalent to
Clutter.Container.add_actor() andClutter.LayoutManager.child_set_property() but it does not require a pointer to theClutter.Containerassociated to theClutter.BinLayoutNew in version 1.2.
Deprecated since version 1.12: Use
Clutter.Actor.add_child() instead.
- get_alignment(child)¶
- Parameters:
child (
Clutter.ActororNone) – 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
Nonethe default alignment policies will be returned insteadNew in version 1.2.
Deprecated since version 1.12: Use the
Clutter.Actor:x-alignand theClutter.Actor:y-alignproperties ofClutter.Actorinstead.
- set_alignment(child, x_align, y_align)¶
- Parameters:
child (
Clutter.ActororNone) – a child of containerx_align (
Clutter.BinAlignment) – the horizontal alignment policy to be used for the child inside containery_align (
Clutter.BinAlignment) – the vertical aligment policy to be used on the child inside container
Sets the horizontal and vertical alignment policies to be applied to a child of self
If child is
Nonethen the x_align and y_align values will be set as the default alignment policiesNew in version 1.2.
Deprecated since version 1.12: Use the
Clutter.Actor:x-alignandClutter.Actor:y-alignproperties ofClutter.Actorinstead.
Property Details¶
- Clutter.BinLayout.props.x_align¶
- Name:
x-align- Type:
- Default Value:
- Flags:
The default horizontal alignment policy for actors managed by the
Clutter.BinLayoutNew in version 1.2.
Deprecated since version 1.12: Use the
Clutter.Actor:x-expandand theClutter.Actor:x-alignproperties onClutter.Actorinstead.
- Clutter.BinLayout.props.y_align¶
- Name:
y-align- Type:
- Default Value:
- Flags:
The default vertical alignment policy for actors managed by the
Clutter.BinLayoutNew in version 1.2.
Deprecated since version 1.12: Use the
Clutter.Actor:y-expandand theClutter.Actor:y-alignproperties onClutter.Actorinstead.