Package org.gnome.gsk
Enum Class BlendMode
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<BlendMode>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum BlendMode
extends Enum<BlendMode>
implements Enumeration
The blend modes available for render nodes.
The implementation of each blend mode is deferred to the rendering pipeline.
See <https://www.w3.org/TR/compositing-1/blending
> for more information
on blending and blend modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCreates a color with the hue and saturation of the source color and the luminosity of the destination colorDarkens the destination color to reflect the source colorBrightens the destination color to reflect the source colorSelects the darker of the destination and source colorsThe default blend mode, which specifies no blendingSubtracts the darker of the two constituent colors from the lighter colorProduces an effect similar to that of the difference mode but lower in contrastMultiplies or screens the colors, depending on the source color valueCreates a color with the hue of the source color and the saturation and luminosity of the destination colorSelects the lighter of the destination and source colorsCreates a color with the luminosity of the source color and the hue and saturation of the destination colorThe source color is multiplied by the destination and replaces the destinationMultiplies or screens the colors, depending on the destination color value.Creates a color with the saturation of the source color and the hue and luminosity of the destination colorMultiplies the complements of the destination and source color values, then complements the result.Darkens or lightens the colors, depending on the source color value -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the BlendMode classint
getValue()
Get the numeric value of this enumstatic BlendMode
of
(int value) Create a new BlendMode for the provided valuestatic BlendMode
Returns the enum constant of this class with the specified name.static BlendMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
The default blend mode, which specifies no blending -
MULTIPLY
The source color is multiplied by the destination and replaces the destination -
SCREEN
Multiplies the complements of the destination and source color values, then complements the result. -
OVERLAY
Multiplies or screens the colors, depending on the destination color value. This is the inverse of hard-list -
DARKEN
Selects the darker of the destination and source colors -
LIGHTEN
Selects the lighter of the destination and source colors -
COLOR_DODGE
Brightens the destination color to reflect the source color -
COLOR_BURN
Darkens the destination color to reflect the source color -
HARD_LIGHT
Multiplies or screens the colors, depending on the source color value -
SOFT_LIGHT
Darkens or lightens the colors, depending on the source color value -
DIFFERENCE
Subtracts the darker of the two constituent colors from the lighter color -
EXCLUSION
Produces an effect similar to that of the difference mode but lower in contrast -
COLOR
Creates a color with the hue and saturation of the source color and the luminosity of the destination color -
HUE
Creates a color with the hue of the source color and the saturation and luminosity of the destination color -
SATURATION
Creates a color with the saturation of the source color and the hue and luminosity of the destination color -
LUMINOSITY
Creates a color with the luminosity of the source color and the hue and saturation of the destination color
-
-
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 BlendMode 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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-