class 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(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 #
Description copied from class Reference

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


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

def free : Nil #

def height : Float32 #

def height=(value : Float32) #

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

def width : Float32 #

def width=(value : Float32) #