ActorBox
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "clutter_actor_box_get_type ()" ) ]
public struct ActorBox
Bounding box of an actor.
The coordinates of the top left and right bottom corners of an actor. The coordinates of the two points are expressed in pixels with
sub-pixel precision
Content:
Static methods:
Creation methods:
Methods:
- public bool contains (float x, float y)
Checks whether a point with x, y coordinates
is contained withing this
- public ActorBox? copy ()
Copies this
- public bool equal (ActorBox box_b)
Checks this and box_b
for equality
- public void free ()
Frees a ActorBox allocated using
clutter_actor_box_new or copy
- public float get_area ()
Retrieves the area of this
- public float get_height ()
Retrieves the height of the this
- public void get_origin (out float x, out float y)
Retrieves the origin of this
- public void get_size (out float width, out float height)
Retrieves the size of this
- public float get_width ()
Retrieves the width of the this
- public float get_x ()
Retrieves the X coordinate of the origin of
this
- public float get_y ()
Retrieves the Y coordinate of the origin of
this
- public unowned ActorBox? init (float x_1, float y_1, float x_2, float y_2)
Initializes this with the given
coordinates.
- public void init_rect (float x, float y, float width, float height)
Initializes this with the given
origin and size.
- public ActorBox interpolate (ActorBox final, double progress)
Interpolates between this and
final ActorBox<!-- -->es using progress
- public void set_origin (float x, float y)
Changes the origin of this,
maintaining the size of the ActorBox.
- public void set_size (float width, float height)
Sets the size of this, maintaining
the origin of the ActorBox.
- public ActorBox union (ActorBox b)
Unions the two boxes this and
b and stores the result in result.
Fields: