Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the PorterDuff class.intgetValue()Get the numeric value of this enumstatic PorterDuffof(int value) Create a new PorterDuff for the provided valuestatic PorterDuffof(MemorySegment address) Create a new PorterDuff for the value in the provided memory address.static PorterDuffReturns the enum constant of this class with the specified name.static PorterDuff[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOURCE
-
DEST
-
SOURCE_OVER_DEST
-
DEST_OVER_SOURCE
-
SOURCE_IN_DEST
-
DEST_IN_SOURCE
-
SOURCE_OUT_DEST
-
DEST_OUT_SOURCE
-
SOURCE_ATOP_DEST
-
DEST_ATOP_SOURCE
-
XOR
-
CLEAR
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
of
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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
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
-