A 4 vertex quadrilateral, as represented by four Graphene.Point.Graphene_Point_T.
The contents of a Graphene.Quad.Graphene_Quad_T are private and should never be accessed directly.
procedure Bounds
(Self : not null access Graphene_Quad_T;
R : not null access Graphene.Rect.Graphene_Rect_T)
Computes the bounding rectangle of Q and places it into R. Since: gtk+ 1.0
return location for a Graphene.Rect.Graphene_Rect_T
function Contains
(Self : not null access Graphene_Quad_T;
P : not null access Graphene.Point.Graphene_Point_T)
return Boolean
Checks if the given Graphene.Quad.Graphene_Quad_T contains the given Graphene.Point.Graphene_Point_T. Since: gtk+ 1.0
a Graphene.Point.Graphene_Point_T
true if the point is inside the Graphene.Quad.Graphene_Quad_T
procedure Free (Self : not null access Graphene_Quad_T)
Frees the resources allocated by graphene_quad_alloc Since: gtk+ 1.0
function From_Object_Free
(B : not null access Graphene_Quad_T) return Graphene_Quad_T
Return the underlying object and free the pointer. This is meant to be used internally by GtkAda, and should not in general be called by user code.
function Get_Point
(Self : not null access Graphene_Quad_T;
Index : Guint) return access constant Graphene.Point.Graphene_Point_T
Retrieves the point of a Graphene.Quad.Graphene_Quad_T at the given index. Since: gtk+ 1.0
the index of the point to retrieve
a Graphene.Point.Graphene_Point_T
function Get_Type return Glib.GType
type Graphene_Point_Array4 is array (1 .. 4) of Graphene_Point_T;
type Graphene_Quad_T is record
Points : Graphene_Point_Array (1 .. 4);
end record;
A 4 vertex quadrilateral, as represented by four Graphene.Point.Graphene_Point_T.
The contents of a Graphene.Quad.Graphene_Quad_T are private and should never be accessed directly.
function Init
(Self : not null access Graphene_Quad_T;
P1 : not null access Graphene.Point.Graphene_Point_T;
P2 : not null access Graphene.Point.Graphene_Point_T;
P3 : not null access Graphene.Point.Graphene_Point_T;
P4 : not null access Graphene.Point.Graphene_Point_T)
return access Graphene_Quad_T
Initializes a Graphene.Quad.Graphene_Quad_T with the given points. Since: gtk+ 1.0
the first point of the quadrilateral
the second point of the quadrilateral
the third point of the quadrilateral
the fourth point of the quadrilateral
the initialized Graphene.Quad.Graphene_Quad_T
function Init_From_Points
(Self : not null access Graphene_Quad_T;
Points : Graphene_Point_Array4) return access Graphene_Quad_T
Initializes a Graphene.Quad.Graphene_Quad_T using an array of points. Since: gtk+ 1.2
an array of 4 Graphene.Point.Graphene_Point_T
the initialized Graphene.Quad.Graphene_Quad_T
function Init_From_Rect
(Self : not null access Graphene_Quad_T;
R : not null access Graphene.Rect.Graphene_Rect_T)
return access Graphene_Quad_T
Initializes a Graphene.Quad.Graphene_Quad_T using the four corners of the given Graphene.Rect.Graphene_Rect_T. Since: gtk+ 1.0
a Graphene.Rect.Graphene_Rect_T
the initialized Graphene.Quad.Graphene_Quad_T