LoadableIcon

interface LoadableIcon : Icon

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

Skipped during bindings generation

  • parameter type: type: Out parameter is not supported

  • parameter type: type: Out parameter is not supported

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val gioIconPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
abstract val gioLoadableIconPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun equal(icon2: Icon? = null): Boolean

Checks if two icons are equal.

Link copied to clipboard
open fun hash(): <Error class: unknown class>

Gets a hash for an icon.

Link copied to clipboard
open fun loadAsync(size: <Error class: unknown class>, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

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().

Link copied to clipboard
open fun serialize(): <Error class: unknown class>?

Serializes a #GIcon into a #GVariant. An equivalent #GIcon can be retrieved back by calling g_icon_deserialize() on the returned value. As serialization will avoid using raw icon data when possible, it only makes sense to transfer the #GVariant between processes on the same machine, (as opposed to over the network), and within the same file system namespace.

Link copied to clipboard
open fun toStringIcon(): String?

Generates a textual representation of @icon that can be used for serialization such as when passing @icon to a different process or saving it to persistent storage. Use g_icon_new_for_string() to get @icon back from the returned string.