Clutter.Geometry¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
height |
r/w |
height of an actor |
|
width |
r/w |
width of an actor |
|
x |
r/w |
X coordinate of the top left corner of an actor |
|
y |
r/w |
Y coordinate of the top left corner of an actor |
Methods¶
|
|
|
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 usecairo.RectangleInt
orClutter.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:
- Return type:
Determines if self and geometry1 intersect returning
True
if they do elseFalse
.New in version 1.4.
Deprecated since version 1.16: Use
Clutter.Rect
andClutter.Rect.intersection
()
- union(geometry_b)¶
- Parameters:
geometry_b (
Clutter.Geometry
) – anotherClutter.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
andClutter.Rect.union
()