class 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:

auto/graphene-1.0/quad.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.alloc : self #

def self.new(pointer : Pointer(Void), 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 #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def bounds : Graphene::Rect #

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

def finalize #

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 : Enumerable(Graphene::Point) #

def points=(value : Enumerable(Graphene::Point)) #

def to_unsafe : Pointer(Void) #