Package org.gnome.gsk
Enum Class TransformCategory
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TransformCategory>
,Constable
@Generated("io.github.jwharm.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))
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe matrix is a 2D matrix.The matrix is a combination of 2D scale and 2D translation operations.The matrix is a 2D translation.The matrix is a 3D matrix.Analyzing the matrix concluded that it does not fit in any other category.The matrix is the identity matrix.The category of the matrix has not been determined. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the TransformCategory classint
getValue()
Get the numeric value of this enumstatic TransformCategory
of
(int value) Create a new TransformCategory for the provided valuestatic TransformCategory
Returns the enum constant of this class with the specified name.static TransformCategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The category of the matrix has not been determined. -
ANY
Analyzing the matrix concluded that it does not fit in any other category. -
_3D
The matrix is a 3D matrix. This means that the w column (the last column) has the values (0, 0, 0, 1). -
_2D
The matrix is a 2D matrix. This is equivalent to graphene_matrix_is_2d() returningtrue
. In particular, this means that Cairo can deal with the matrix. -
_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
The matrix is a 2D translation. -
IDENTITY
The matrix is the identity matrix.
-
-
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 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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-