Class BytesIcon

All Implemented Interfaces:
PointerInterface

public class BytesIcon extends Object
#GBytesIcon specifies an image held in memory in a common format (usually
png) to be used as icon.

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

  • Constructor Details

    • BytesIcon

      public BytesIcon(PointerContainer pointer)
    • BytesIcon

      public BytesIcon(@Nonnull Bytes bytes)
      Creates a new icon for a bytes.

      This cannot fail, but loading and interpreting the bytes may fail later on
      (for example, if g_loadable_icon_load() is called) if the image is invalid.
      Parameters:
      bytes - a #GBytes.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getBytes

      public Bytes getBytes()
      Gets the #GBytes associated with the given @icon.
      Returns:
      a #GBytes.
    • asIcon

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

      public LoadableIcon asLoadableIcon()
      Implements interface LoadableIcon. Call this to get access to interface functions.
      Returns:
      LoadableIcon
    • 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()