Clutter.Size

Fields

Name

Type

Access

Description

height

float

r/w

the height, in pixels

width

float

r/w

the width, in pixels

Methods

class

alloc ()

copy ()

equals (b)

free ()

init (width, height)

Details

class Clutter.Size

A size, in 2D space.

New in version 1.12.

classmethod alloc()
Returns:

the newly allocated Clutter.Size. Use Clutter.Size.free() to free its resources.

Return type:

Clutter.Size

Allocates a new Clutter.Size.

New in version 1.12.

copy()
Returns:

the newly allocated Clutter.Size. Use Clutter.Size.free() to free its resources.

Return type:

Clutter.Size

Creates a new Clutter.Size and duplicates self.

New in version 1.12.

equals(b)
Parameters:

b (Clutter.Size) – a Clutter.Size to compare

Returns:

True if the two Clutter.Size are equal

Return type:

bool

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:
  • width (float) – the width

  • height (float) – the height

Returns:

the initialized Clutter.Size

Return type:

Clutter.Size

Initializes a Clutter.Size with the given dimensions.

New in version 1.12.