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.Sizeand duplicates self.New in version 1.12.
- equals(b)¶
- Parameters:
b (
Clutter.Size) – aClutter.Sizeto compare- Returns:
Trueif the twoClutter.Sizeare equal- Return type:
Compares two
Clutter.Sizefor 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.Sizewith the given dimensions.New in version 1.12.