Enum Class BlendMode

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

@Generated("org.javagi.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 Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Creates a color with the hue and saturation of the source color and the luminosity of the destination color
    Darkens the destination color to reflect the source color
    Brightens the destination color to reflect the source color
    Selects the darker of the destination and source colors
    The default blend mode, which specifies no blending
    Subtracts the darker of the two constituent colors from the lighter color
    Produces an effect similar to that of the difference mode but lower in contrast
    Multiplies or screens the colors, depending on the source color value
    Creates a color with the hue of the source color and the saturation and luminosity of the destination color
    Selects the lighter of the destination and source colors
    Creates a color with the luminosity of the source color and the hue and saturation of the destination color
    The source color is multiplied by the destination and replaces the destination
    Multiplies 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 color
    Multiplies 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 Type
    Method
    Description
    static @Nullable Type
    Get the GType of the BlendMode class.
    int
    Get the numeric value of this enum
    static BlendMode
    of(int value)
    Create a new BlendMode for the provided value
    static BlendMode
    of(MemorySegment address)
    Create a new BlendMode for the value in the provided memory address.
    static BlendMode
    Returns the enum constant of this class with the specified name.
    static BlendMode[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DEFAULT

      public static final BlendMode DEFAULT
      The default blend mode, which specifies no blending
    • MULTIPLY

      public static final BlendMode MULTIPLY
      The source color is multiplied by the destination and replaces the destination
    • SCREEN

      public static final BlendMode SCREEN
      Multiplies the complements of the destination and source color values, then complements the result.
    • OVERLAY

      public static final BlendMode OVERLAY
      Multiplies or screens the colors, depending on the destination color value. This is the inverse of hard-list
    • DARKEN

      public static final BlendMode DARKEN
      Selects the darker of the destination and source colors
    • LIGHTEN

      public static final BlendMode LIGHTEN
      Selects the lighter of the destination and source colors
    • COLOR_DODGE

      public static final BlendMode COLOR_DODGE
      Brightens the destination color to reflect the source color
    • COLOR_BURN

      public static final BlendMode COLOR_BURN
      Darkens the destination color to reflect the source color
    • HARD_LIGHT

      public static final BlendMode HARD_LIGHT
      Multiplies or screens the colors, depending on the source color value
    • SOFT_LIGHT

      public static final BlendMode SOFT_LIGHT
      Darkens or lightens the colors, depending on the source color value
    • DIFFERENCE

      public static final BlendMode DIFFERENCE
      Subtracts the darker of the two constituent colors from the lighter color
    • EXCLUSION

      public static final BlendMode EXCLUSION
      Produces an effect similar to that of the difference mode but lower in contrast
    • COLOR

      public static final BlendMode COLOR
      Creates a color with the hue and saturation of the source color and the luminosity of the destination color
    • HUE

      public static final BlendMode HUE
      Creates a color with the hue of the source color and the saturation and luminosity of the destination color
    • SATURATION

      public static final BlendMode SATURATION
      Creates a color with the saturation of the source color and the hue and luminosity of the destination color
    • LUMINOSITY

      public static final BlendMode LUMINOSITY
      Creates a color with the luminosity of the source color and the hue and saturation of the destination color
  • Method Details

    • values

      public static BlendMode[] 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 BlendMode 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 BlendMode of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

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