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.BinLayout
structure 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.BinLayout
layout managerNew in version 1.2.
- add(child, x_align, y_align)¶
- Parameters:
child (
Clutter.Actor
) – aClutter.Actor
x_align (
Clutter.BinAlignment
) – horizontal alignment policy for childy_align (
Clutter.BinAlignment
) – vertical alignment policy for child
Adds a
Clutter.Actor
to 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.Container
associated to theClutter.BinLayout
New in version 1.2.
Deprecated since version 1.12: Use
Clutter.Actor.add_child
() instead.
- get_alignment(child)¶
- Parameters:
child (
Clutter.Actor
orNone
) – 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 insteadNew in version 1.2.
Deprecated since version 1.12: Use the
Clutter.Actor
:x-align
and theClutter.Actor
:y-align
properties ofClutter.Actor
instead.
- set_alignment(child, x_align, y_align)¶
- Parameters:
child (
Clutter.Actor
orNone
) – 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
None
then 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-align
andClutter.Actor
:y-align
properties ofClutter.Actor
instead.
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.BinLayout
New in version 1.2.
Deprecated since version 1.12: Use the
Clutter.Actor
:x-expand
and theClutter.Actor
:x-align
properties onClutter.Actor
instead.
- Clutter.BinLayout.props.y_align¶
- Name:
y-align
- Type:
- Default Value:
- Flags:
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 theClutter.Actor
:y-align
properties onClutter.Actor
instead.