Enum Class PathOperation

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

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

Describes the segments of a GskPath.

More values may be added in the future.

Since:
4.14
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A close operation ending the current contour with a line back to the starting point.
    A rational quadratic Bézier curve with 3 points describing the start point, control point and end point of the curve.
    A curve-to operation describing a cubic Bézier curve with 4 points describing the start point, the two control points and the end point of the curve.
    A line-to operation, with 2 points describing the start and end point of a straight line.
    A move-to operation, with 1 point describing the target point.
    A curve-to operation describing a quadratic Bézier curve with 3 points describing the start point, the control point and the end point of the curve.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Type
    Get the GType of the PathOperation class.
    int
    Get the numeric value of this enum
    of(int value)
    Create a new PathOperation for the provided value
    of(MemorySegment address)
    Create a new PathOperation for the value in the provided memory address.
    Returns the enum constant of this class with the specified name.
    static PathOperation[]
    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

    • MOVE

      public static final PathOperation MOVE
      A move-to operation, with 1 point describing the target point.
    • CLOSE

      public static final PathOperation CLOSE
      A close operation ending the current contour with a line back to the starting point. Two points describe the start and end of the line.
    • LINE

      public static final PathOperation LINE
      A line-to operation, with 2 points describing the start and end point of a straight line.
    • QUAD

      public static final PathOperation QUAD
      A curve-to operation describing a quadratic Bézier curve with 3 points describing the start point, the control point and the end point of the curve.
    • CUBIC

      public static final PathOperation CUBIC
      A curve-to operation describing a cubic Bézier curve with 4 points describing the start point, the two control points and the end point of the curve.
    • CONIC

      public static final PathOperation CONIC
      A rational quadratic Bézier curve with 3 points describing the start point, control point and end point of the curve. A weight for the curve will be passed, too.
  • Method Details

    • values

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