Clutter.Geometry

Fields

Name

Type

Access

Description

height

int

r/w

height of an actor

width

int

r/w

width of an actor

x

int

r/w

X coordinate of the top left corner of an actor

y

int

r/w

Y coordinate of the top left corner of an actor

Methods

intersects (geometry1)

union (geometry_b)

Details

class Clutter.Geometry

The rectangle containing an actor’s bounding box, measured in pixels.

You should not use Clutter.Geometry, or operate on its fields directly; you should use cairo.RectangleInt or Clutter.Rect if you need a rectangle type, depending on the precision required.

Deprecated since version 1.16.

intersects(geometry1)
Parameters:

geometry1 (Clutter.Geometry) – The second geometry to test

Returns:

True of self and geometry1 intersect else False.

Return type:

bool

Determines if self and geometry1 intersect returning True if they do else False.

New in version 1.4.

Deprecated since version 1.16: Use Clutter.Rect and Clutter.Rect.intersection()

union(geometry_b)
Parameters:

geometry_b (Clutter.Geometry) – another Clutter.Geometry

Returns:

location to store the result

Return type:

result: Clutter.Geometry

Find the union of two rectangles represented as Clutter.Geometry.

New in version 1.4.

Deprecated since version 1.16: Use Clutter.Rect and Clutter.Rect.union()