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.

Members

Functions

bounds
void bounds(graphene.rect.Rect r)

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

contains
bool contains(graphene.point.Point p)

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

getPoint
graphene.point.Point getPoint(uint index)

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

initFromPoints
graphene.quad.Quad initFromPoints(graphene.point.Point[] points)

Initializes a #graphene_quad_t using an array of points.

initFromRect
graphene.quad.Quad initFromRect(graphene.rect.Rect r)

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

init_
graphene.quad.Quad init_(graphene.point.Point p1, graphene.point.Point p2, graphene.point.Point p3, graphene.point.Point p4)

Initializes a #graphene_quad_t with the given points.

Static functions

alloc
graphene.quad.Quad alloc()

Allocates a new #graphene_quad_t instance.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.