module Gio::LoadableIcon

Overview

GLoadableIcon extends the Gio::Icon interface and adds the ability to load icons from streams.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gio-2.0/loadable_icon.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

def self.g_type : UInt64 #

Instance Method Detail

def load(size : Int32, cancellable : Gio::Cancellable | Nil) : Gio::InputStream #

def load_async(size : Int32, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil #

def load_finish(res : Gio::AsyncResult) : Gio::InputStream #

abstract def to_unsafe #