struct Graphene::Size

Overview

A size.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

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

def self.new(width : Float32? = nil, height : Float32? = nil) #

Class Method Detail

def self.g_type : UInt64 #

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


def self.zero : Graphene::Size #

Instance Method Detail

def ==(other : self) : Bool #

def equal(b : Graphene::Size) : Bool #

def free : Nil #

def height(*args, **options) #

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

def height=(arg) #

def init(width : Float32, height : Float32) : Graphene::Size #

def init_from_size(src : Graphene::Size) : Graphene::Size #

def interpolate(b : Graphene::Size, factor : Float64) : Graphene::Size #

def scale(factor : Float32) : Graphene::Size #

def width(*args, **options) #

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

def width=(arg) #