Class EmblemedIcon

All Implemented Interfaces:
PointerInterface

public class EmblemedIcon extends Object
#GEmblemedIcon is an implementation of #GIcon that supports
adding an emblem to an icon. Adding multiple emblems to an
icon is ensured via g_emblemed_icon_add_emblem().

Note that #GEmblemedIcon allows no control over the position
of the emblems. See also #GEmblem for more information.

https://docs.gtk.org/gio/class.EmblemedIcon.html

  • Constructor Details

    • EmblemedIcon

      public EmblemedIcon(PointerContainer pointer)
    • EmblemedIcon

      public EmblemedIcon(@Nonnull Icon icon, @Nullable Emblem emblem)
      Creates a new emblemed icon for @icon with the emblem @emblem.
      Parameters:
      icon - a #GIcon
      emblem - a #GEmblem, or %NULL
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • addEmblem

      public void addEmblem(@Nonnull Emblem emblem)
      Adds @emblem to the #GList of #GEmblems.
      Parameters:
      emblem - a #GEmblem
    • clearEmblems

      public void clearEmblems()
      Removes all the emblems from @icon.
    • getEmblems

      public List getEmblems()
      Gets the list of emblems for the @icon.
      Returns:
      a #GList of #GEmblems that is owned by @emblemed
    • getIcon

      public Icon getIcon()
      Gets the main icon for @emblemed.
      Returns:
      a #GIcon that is owned by @emblemed
    • asIcon

      public Icon asIcon()
      Implements interface Icon. Call this to get access to interface functions.
      Returns:
      Icon
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()