struct Graphene::Quad

Overview

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.

Defined in:

lib/gi-crystal/src/auto/graphene-1.0/quad.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(data : LibGraphene::Quad, _transfer : GICrystal::Transfer) #

def self.new(points : Enumerable(Graphene::Point)? = nil) #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def ==(other : self) : Bool #

def bounds : Graphene::Rect #

def contains(p : Graphene::Point) : Bool #

def free : Nil #


def init_from_points(points : Enumerable(Graphene::Point)) : Graphene::Quad #

def init_from_points(*points : Graphene::Point) #

def init_from_rect(r : Graphene::Rect) : Graphene::Quad #

def point(index_ : UInt32) : Graphene::Point #

def points(*args, **options) #

def points(*args, **options, &) #

def points=(arg) #