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 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 testReturns: True
of self and geometry1 intersect elseFalse
.Return type: bool
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
()
-