ActorBox
Object Hierarchy:
Description:
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 void clamp_to_pixel ()
Clamps the components of box to the nearest integer
- public bool contains (float x, float y)
Checks whether a point with x, y coordinates is
contained withing box
- public ActorBox copy ()
Copies box
- public bool equal (ActorBox box_b)
Checks box_a 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 box
- public float get_height ()
Retrieves the height of the box
- public void get_origin (out float x, out float y)
Retrieves the origin of box
- public void get_size (out float width, out float height)
Retrieves the size of box
- public float get_width ()
Retrieves the width of the box
- public float get_x ()
Retrieves the X coordinate of the origin of box
- public float get_y ()
Retrieves the Y coordinate of the origin of box
- public ActorBox init (float x_1, float y_1, float x_2, float y_2)
Initializes box with the given coordinates.
- public void init_rect (float x, float y, float width, float height)
Initializes box with the given origin and size.
- public ActorBox interpolate (ActorBox final, double progress)
Interpolates between initial and final
ActorBoxes using progress
- public void set_origin (float x, float y)
Changes the origin of box, maintaining the size of the
ActorBox.
- public void set_size (float width, float height)
Sets the size of box, maintaining the origin of the
ActorBox.
- public ActorBox union (ActorBox b)
Unions the two boxes a and b and stores the result
in result.
Fields: