# Enum gsk4::TransformCategory [−][src]

```
#[non_exhaustive]
pub enum TransformCategory {
Unknown,
Any,
_3d,
_2d,
_2dAffine,
_2dTranslate,
Identity,
// some variants omitted
}
```

## Expand description

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))`

.

## Variants (Non-exhaustive)

## This enum is marked as non-exhaustive

The category of the matrix has not been determined.

Analyzing the matrix concluded that it does not fit in any other category.

The matrix is a 3D matrix. This means that the w column (the last column) has the values (0, 0, 0, 1).

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.

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.

The matrix is a 2D translation.

The matrix is the identity matrix.

## Trait Implementations

#### type Checker = GenericValueTypeChecker<Self>

#### type Checker = GenericValueTypeChecker<Self>

Value type checker.

Get the contained value from a `Value`

. Read more

This method tests for `self`

and `other`

values to be equal, and is used
by `==`

. Read more

This method tests for `!=`

.

This method returns an ordering between `self`

and `other`

values if one exists. Read more

This method tests less than (for `self`

and `other`

) and is used by the `<`

operator. Read more

This method tests less than or equal to (for `self`

and `other`

) and is used by the `<=`

operator. Read more

This method tests greater than (for `self`

and `other`

) and is used by the `>`

operator. Read more

Returns the type identifier of `Self`

.

## Auto Trait Implementations

### impl RefUnwindSafe for TransformCategory

### impl Send for TransformCategory

### impl Sync for TransformCategory

### impl Unpin for TransformCategory

### impl UnwindSafe for TransformCategory

## Blanket Implementations

Mutably borrows from an owned value. Read more

Returns a `SendValue`

clone of `self`

.