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

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

[View source]
def self.new(width : Float32 | Nil = nil, height : Float32 | Nil = nil) #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]
def self.zero : Graphene::Size #

[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def equal(b : Graphene::Size) : Bool #

[View source]
def free : Nil #

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

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

[View source]
def height=(arg) #

[View source]
def init(width : Float32, height : Float32) : Graphene::Size #

[View source]
def init_from_size(src : Graphene::Size) : Graphene::Size #

[View source]
def interpolate(b : Graphene::Size, factor : Float64) : Graphene::Size #

[View source]
def scale(factor : Float32) : Graphene::Size #

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

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

[View source]
def width=(arg) #

[View source]