Quad

class Quad(pointer: <Error class: unknown class><<Error class: unknown class>>)

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.

Skipped during bindings generation

  • parameter points: Point

  • field points: Record field points is private

Since

1.0

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val grapheneQuadPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun bounds(r: Rect)

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

Link copied to clipboard

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

Link copied to clipboard
fun free()

Frees the resources allocated by graphene_quad_alloc()

Link copied to clipboard
fun getPoint(index: <Error class: unknown class>): Point

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

Link copied to clipboard
fun init(p1: Point, p2: Point, p3: Point, p4: Point): Quad

Initializes a #graphene_quad_t with the given points.

Link copied to clipboard

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