Clutter.Size¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
height |
r/w |
the height, in pixels |
|
width |
r/w |
the width, in pixels |
Methods¶
class |
|
|
|
|
|
|
|
|
Details¶
- class Clutter.Size¶
A size, in 2D space.
New in version 1.12.
- classmethod alloc()¶
- Returns:
the newly allocated
Clutter.Size
. UseClutter.Size.free
() to free its resources.- Return type:
Allocates a new
Clutter.Size
.New in version 1.12.
- copy()¶
- Returns:
the newly allocated
Clutter.Size
. UseClutter.Size.free
() to free its resources.- Return type:
Creates a new
Clutter.Size
and duplicates self.New in version 1.12.
- equals(b)¶
- Parameters:
b (
Clutter.Size
) – aClutter.Size
to compare- Returns:
True
if the twoClutter.Size
are equal- Return type:
Compares two
Clutter.Size
for equality.New in version 1.12.
- free()¶
Frees the resources allocated for self.
New in version 1.12.
- init(width, height)¶
- Parameters:
- Returns:
the initialized
Clutter.Size
- Return type:
Initializes a
Clutter.Size
with the given dimensions.New in version 1.12.