Quad

A 4 vertex quadrilateral, as represented by four #graphene_point_t.

The contents of a #graphene_quad_t are private and should never be accessed directly.

Constructors

this
this(graphene_quad_t* graphene_quad, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Allocates a new #graphene_quad_t instance.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

bounds
void bounds(Rect r)

Computes the bounding rectangle of @q and places it into @r.

contains
bool contains(Point p)

Checks if the given #graphene_quad_t contains the given #graphene_point_t.

free
void free()

Frees the resources allocated by graphene_quad_alloc()

getPoint
Point getPoint(uint index)

Retrieves the point of a #graphene_quad_t at the given index.

getQuadStruct
graphene_quad_t* getQuadStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

init
Quad init(Point p1, Point p2, Point p3, Point p4)

Initializes a #graphene_quad_t with the given points.

initFromPoints
Quad initFromPoints(Point[4] points)

Initializes a #graphene_quad_t using an array of points.

initFromRect
Quad initFromRect(Rect r)

Initializes a #graphene_quad_t using the four corners of the given #graphene_rect_t.

Static functions

getType
GType getType()

Variables

graphene_quad
graphene_quad_t* graphene_quad;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta