Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: EmblemedIconMeta

[182:14] static extends: object

Generated metadata helpers for EmblemedIcon class surfaces.

Methods

  • properties ()

    Returns property metadata for EmblemedIcon.

    • @r A list.

class: EmblemedIcon

[16:7] extends: object

GEmblemedIcon is an implementation of [iface@Gio.Icon] that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured via [method@Gio.EmblemedIcon.add_emblem]. Note that GEmblemedIcon allows no control over the position of the emblems. See also [class@Gio.Emblem] for more information.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • EmblemedIcon (icon = null, emblem = null)

    Creates a new emblemed icon for @icon with the emblem @emblem.

    • @p icon is a #GIcon.
    • @p emblem is a #GEmblem, or %NULL.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • asIcon ()

    Wraps this handle as Icon.

    • @r A Icon object.
  • add_emblem (object emblem)

    Adds @emblem to the #GList of #GEmblems.

    • @p emblem is a #GEmblem.
    • @r None.
  • clear_emblems ()

    Removes all the emblems from @icon.

    • @r None.
  • get_emblems ()

    Gets the list of emblems for the @icon.

  • get_icon ()

    Gets the main icon for @emblemed.

  • emblems ()

    Returns get_emblems as an Aussom list of wrapper objects. This companion method materializes the full collection up front; use get_emblems() when lazy or change-notify access is required.

    • @r An Aussom list of elements.