FileIcon

GBytesIcon specifies an image held in memory in a common format (usually png) to be used as icon.

Constructors

this
this(GBytesIcon* gBytesIcon)

Sets our main struct and passes it to the parent class

this
this(Bytes bytes)

Creates a new icon for a bytes. Since 2.38

Members

Functions

getBytes
Bytes getBytes()

Gets the GBytes associated with the given icon. Since 2.38

getFileIconStruct
GBytesIcon* getFileIconStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Mixins

__anonymous
mixin LoadableIconT!(GBytesIcon)
Undocumented in source.

Variables

gBytesIcon
GBytesIcon* gBytesIcon;

the main Gtk struct

Inherited Members

From LoadableIconIF

getLoadableIconTStruct
GLoadableIcon* getLoadableIconTStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

load
InputStream load(int size, string type, Cancellable cancellable)

Loads a loadable icon. For the asynchronous version of this function, see g_loadable_icon_load_async().

loadAsync
void loadAsync(int size, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Loads an icon asynchronously. To finish this function, see g_loadable_icon_load_finish(). For the synchronous, blocking version of this function, see g_loadable_icon_load().

loadFinish
InputStream loadFinish(AsyncResultIF res, string type)

Finishes an asynchronous icon load started in g_loadable_icon_load_async().

Meta