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)
GType _gType() @property
Quad self()Returns `this`, for use in `with` statements.
graphene.quad.Quad alloc()Allocates a new #graphenequadt instance.
void bounds(out graphene.rect.Rect r)Computes the bounding rectangle of `q` and places it into `r`.
bool contains(graphene.point.Point p)Checks if the given #graphenequadt contains the given #graphenepointt.
graphene.point.Point getPoint(uint index)Retrieves the point of a #graphenequadt at the given index.
graphene.quad.Quad init_(graphene.point.Point p1, graphene.point.Point p2, graphene.point.Point p3, graphene.point.Point p4)Initializes a #graphenequadt with the given points.
graphene.quad.Quad initFromPoints(graphene.point.Point[] points)Initializes a #graphenequadt using an array of points.
graphene.quad.Quad initFromRect(graphene.rect.Rect r)Initializes a #graphenequadt using the four corners of the given #graphenerectt.
Constructors
this()Create a `quad.Quad` boxed type.
this(void * ptr, Flag!"Take" take)