Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: object
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.
GrapheneQuad (Handle = null)
Allocates a new #graphene_quad_t instance. The contents of the returned instance are undefined.
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.bounds ()
Computes the bounding rectangle of @q and places it into @r.
r is return location for a #graphene_rect_t.None.contains (object p)
Checks if the given #graphene_quad_t contains the given #graphene_point_t.
p is a #graphene_point_t.true if the point is inside the #graphene_quad_t.free ()
Frees the resources allocated by graphene_quad_alloc()
None.get_point (int index_)
Retrieves the point of a #graphene_quad_t at the given index.
index_ is the index of the point to retrieve.a #graphene_point_t.init (object p1, object p2, object p3, object p4)
Initializes a #graphene_quad_t with the given points.
p1 is the first point of the quadrilateral.p2 is the second point of the quadrilateral.p3 is the third point of the quadrilateral.p4 is the fourth point of the quadrilateral.the initialized #graphene_quad_t.init_from_points (list points)
Initializes a #graphene_quad_t using an array of points.
points is an array of 4 #graphene_point_t.the initialized #graphene_quad_t.init_from_rect (object r)
Initializes a #graphene_quad_t using the four corners of the given #graphene_rect_t.
r is a #graphene_rect_t.the initialized #graphene_quad_t.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.