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) #

[View source]
def self.new(data : LibGraphene::Quad, _transfer : GICrystal::Transfer) #

[View source]
def self.new(points : Enumerable(Graphene::Point) | Nil = nil) #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def bounds : Graphene::Rect #

[View source]
def contains(p : Graphene::Point) : Bool #

[View source]
def free : Nil #

[View source]

[View source]
def init_from_points(points : Enumerable(Graphene::Point)) : Graphene::Quad #

[View source]
def init_from_points(*points : Graphene::Point) #

[View source]
def init_from_rect(r : Graphene::Rect) : Graphene::Quad #

[View source]
def point(index_ : UInt32) : Graphene::Point #

[View source]
def points(*args, **options) #

[View source]
def points(*args, **options, &) #

[View source]
def points=(arg) #

[View source]