Enum Class PixbufError

java.lang.Object
java.lang.Enum<PixbufError>
org.gnome.gdkpixbuf.PixbufError
All Implemented Interfaces:
Serializable, Comparable<PixbufError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum PixbufError extends Enum<PixbufError> implements Enumeration

An error code in the GDK_PIXBUF_ERROR domain.

Many gdk-pixbuf operations can cause errors in this domain, or in the G_FILE_ERROR domain.

  • Enum Constant Details

    • CORRUPT_IMAGE

      public static final PixbufError CORRUPT_IMAGE
      An image file was broken somehow.
    • INSUFFICIENT_MEMORY

      public static final PixbufError INSUFFICIENT_MEMORY
      Not enough memory.
    • BAD_OPTION

      public static final PixbufError BAD_OPTION
      A bad option was passed to a pixbuf save module.
    • UNKNOWN_TYPE

      public static final PixbufError UNKNOWN_TYPE
      Unknown image type.
    • UNSUPPORTED_OPERATION

      public static final PixbufError UNSUPPORTED_OPERATION
      Don't know how to perform the given operation on the type of image at hand.
    • FAILED

      public static final PixbufError FAILED
      Generic failure code, something went wrong.
    • INCOMPLETE_ANIMATION

      public static final PixbufError INCOMPLETE_ANIMATION
      Only part of the animation was loaded.
  • Method Details

    • values

      public static PixbufError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PixbufError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static PixbufError of(int value)
      Create a new PixbufError for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static PixbufError of(MemorySegment address)
      Create a new PixbufError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the PixbufError class.
      Returns:
      the GType
    • quark

      public static Quark quark()