module Gio::LoadableIcon

Overview

Extends the #GIcon 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.


[View source]

Class Method Detail

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

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

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

[View source]
def load_async(size : Int32, cancellable : Gio::Cancellable | Nil, callback : Gio::AsyncReadyCallback | Nil, user_data : Pointer(Void) | Nil) : Nil #

[View source]
def load_finish(res : Gio::AsyncResult) : Gio::InputStream #

[View source]
abstract def to_unsafe #

[View source]