Enum Class PorterDuff

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

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

GSK_PORTER_DUFF_SOURCE: GSK_PORTER_DUFF_DEST: GSK_PORTER_DUFF_SOURCE_OVER_DEST: GSK_PORTER_DUFF_DEST_OVER_SOURCE: GSK_PORTER_DUFF_SOURCE_IN_DEST: GSK_PORTER_DUFF_DEST_IN_SOURCE: GSK_PORTER_DUFF_SOURCE_OUT_DEST: GSK_PORTER_DUFF_DEST_OUT_SOURCE: GSK_PORTER_DUFF_SOURCE_ATOP_DEST: GSK_PORTER_DUFF_DEST_ATOP_SOURCE: GSK_PORTER_DUFF_XOR: GSK_PORTER_DUFF_CLEAR: The 12 compositing modes defined by the seminal paper by Thomas Porter and Tom Duff.

They are used in SVG, PDF and in Cairo with cairo_operator_t.

Since:
4.22
  • Enum Constant Details

    • SOURCE

      public static final PorterDuff SOURCE
    • DEST

      public static final PorterDuff DEST
    • SOURCE_OVER_DEST

      public static final PorterDuff SOURCE_OVER_DEST
    • DEST_OVER_SOURCE

      public static final PorterDuff DEST_OVER_SOURCE
    • SOURCE_IN_DEST

      public static final PorterDuff SOURCE_IN_DEST
    • DEST_IN_SOURCE

      public static final PorterDuff DEST_IN_SOURCE
    • SOURCE_OUT_DEST

      public static final PorterDuff SOURCE_OUT_DEST
    • DEST_OUT_SOURCE

      public static final PorterDuff DEST_OUT_SOURCE
    • SOURCE_ATOP_DEST

      public static final PorterDuff SOURCE_ATOP_DEST
    • DEST_ATOP_SOURCE

      public static final PorterDuff DEST_ATOP_SOURCE
    • XOR

      public static final PorterDuff XOR
    • CLEAR

      public static final PorterDuff CLEAR
  • Method Details

    • values

      public static PorterDuff[] 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 PorterDuff 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 PorterDuff of(int value)
      Create a new PorterDuff 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 PorterDuff of(MemorySegment address)
      Create a new PorterDuff 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 PorterDuff class.
      Returns:
      the GType