Class Emblem

All Implemented Interfaces:
PointerInterface

public class Emblem extends Object
#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.

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

  • Constructor Details

    • Emblem

      public Emblem(PointerContainer pointer)
    • Emblem

      public Emblem(@Nonnull Icon icon)
      Creates a new emblem for @icon.
      Parameters:
      icon - a GIcon containing the icon.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newWithOriginEmblem

      public static Emblem newWithOriginEmblem(@Nonnull Icon icon, int origin)
      Creates a new emblem for @icon.
      Parameters:
      icon - a GIcon containing the icon.
      origin - a GEmblemOrigin enum defining the emblem's origin
      Returns:
      a new #GEmblem.
    • getIcon

      public Icon getIcon()
      Gives back the icon from @emblem.
      Returns:
      a #GIcon. The returned object belongs to the emblem and should not be modified or freed.
    • getOrigin

      public int getOrigin()
      Gets the origin of the emblem.
      Returns:
      the origin of the emblem
    • 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()