Enum Class TransformCategory

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

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

The categories of matrices relevant for GSK and GTK.

Note that any category includes matrices of all later categories. So if you want to for example check if a matrix is a 2D matrix, category >= GSK_TRANSFORM_CATEGORY_2D is the way to do this.

Also keep in mind that rounding errors may cause matrices to not conform to their categories. Otherwise, matrix operations done via multiplication will not worsen categories. So for the matrix multiplication C = A * B, category(C) = MIN (category(A), category(B)).

  • Enum Constant Details

    • UNKNOWN

      public static final TransformCategory UNKNOWN
      The category of the matrix has not been determined.
    • ANY

      public static final TransformCategory ANY
      Analyzing the matrix concluded that it does not fit in any other category.
    • _3D

      public static final TransformCategory _3D
      The matrix is a 3D matrix. This means that the w column (the last column) has the values (0, 0, 0, 1).
    • _2D

      public static final TransformCategory _2D
      The matrix is a 2D matrix. This is equivalent to graphene_matrix_is_2d() returning true. In particular, this means that Cairo can deal with the matrix.
    • _2D_AFFINE

      public static final TransformCategory _2D_AFFINE
      The matrix is a combination of 2D scale and 2D translation operations. In particular, this means that any rectangle can be transformed exactly using this matrix.
    • _2D_TRANSLATE

      public static final TransformCategory _2D_TRANSLATE
      The matrix is a 2D translation.
    • IDENTITY

      public static final TransformCategory IDENTITY
      The matrix is the identity matrix.
  • Method Details

    • values

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