graphene.quad

Module for [Quad] class

class Quad

Types 1

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.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Quad self() nothrowReturns `this`, for use in `with` statements.
graphene.quad.Quad alloc() static nothrowAllocates a new #graphene_quad_t instance.
void bounds(out graphene.rect.Rect r) nothrowComputes the bounding rectangle of `q` and places it into `r`.
bool contains(graphene.point.Point p) nothrowChecks if the given #graphene_quad_t contains the given #graphene_point_t.
graphene.point.Point getPoint(uint index) nothrowRetrieves the point of a #graphene_quad_t at the given index.
graphene.quad.Quad init_(graphene.point.Point p1, graphene.point.Point p2, graphene.point.Point p3, graphene.point.Point p4) nothrowInitializes a #graphene_quad_t with the given points.
graphene.quad.Quad initFromPoints(graphene.point.Point[] points) nothrowInitializes a #graphene_quad_t using an array of points.
graphene.quad.Quad initFromRect(graphene.rect.Rect r) nothrowInitializes a #graphene_quad_t using the four corners of the given #graphene_rect_t.
Constructors
this()Create a `quad.Quad` boxed type.
this(void * ptr, Flag!"Take" take)