Emblem

open class Emblem(pointer: <Error class: unknown class><<Error class: unknown class>>) : Icon

#GEmblem is an implementation of #GIcon that supports having an emblem, which is an icon with additional properties. It can than be added to a #GEmblemedIcon.

Currently, only metainformation about the emblem's origin is supported. More may be added in the future.

Constructors

Link copied to clipboard
constructor(icon: Icon)

Creates a new emblem for @icon.

constructor(icon: Icon, origin: EmblemOrigin)

Creates a new emblem for @icon.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioEmblemPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gioIconPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val icon: Icon
Link copied to clipboard

Functions

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

Checks if two icons are equal.

Link copied to clipboard
open fun getIcon(): Icon

Gives back the icon from @emblem.

Link copied to clipboard

Gets the origin of the emblem.

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.