summaryrefslogtreecommitdiff
path: root/gsk/gskrendernodeprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-03-01 07:51:23 +0100
committerBenjamin Otte <otte@redhat.com>2019-03-04 23:15:24 +0100
commit3cc84d2860a7d7d67640d3e8706794a5703d2115 (patch)
tree38f2267fe94ec22a1a85276d720e6caabb2d5c28 /gsk/gskrendernodeprivate.h
parent791bf0c2eb4b458f6f0ff9765e9fa52bbd9e6950 (diff)
downloadgtk+-3cc84d2860a7d7d67640d3e8706794a5703d2115.tar.gz
transform: Make category public API
Also rename it from GskMatrixCategory to GskTransformCategory.
Diffstat (limited to 'gsk/gskrendernodeprivate.h')
-rw-r--r--gsk/gskrendernodeprivate.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h
index 744e96cd97..df47602526 100644
--- a/gsk/gskrendernodeprivate.h
+++ b/gsk/gskrendernodeprivate.h
@@ -6,44 +6,6 @@
G_BEGIN_DECLS
-/*<private>
- * GskMatrixCategory:
- * @GSK_MATRIX_CATEGORY_UNKNOWN: The category of the matrix has not been
- * determined.
- * @GSK_MATRIX_CATEGORY_ANY: Analyzing the matrix concluded that it does
- * not fit in any other category.
- * @GSK_MATRIX_CATEGORY_INVERTIBLE: The matrix is linear independant and
- * should therefor be invertible. Note that this is not guaranteed
- * to actually be true due to rounding errors when inverting.
- * @GSK_MATRIX_CATEGORY_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.
- * @GSK_MATRIX_CATEGORY_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.
- * @GSK_MATRIX_CATEGORY_2D_TRANSLATE: The matrix is a 2D translation.
- * @GSK_MATRIX_CATEGORY_IDENTITY: The matrix is the identity matrix.
- *
- * 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_MATRIX_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
- * mutliplication will not worsen categories. So for the matrix
- * multiplication `C = A * B`, `category(C) = MIN (category(A), category(B))`.
- */
-typedef enum
-{
- GSK_MATRIX_CATEGORY_UNKNOWN,
- GSK_MATRIX_CATEGORY_ANY,
- GSK_MATRIX_CATEGORY_INVERTIBLE,
- GSK_MATRIX_CATEGORY_2D_AFFINE,
- GSK_MATRIX_CATEGORY_2D_TRANSLATE,
- GSK_MATRIX_CATEGORY_IDENTITY
-} GskMatrixCategory;
-
typedef struct _GskRenderNodeClass GskRenderNodeClass;
#define GSK_IS_RENDER_NODE_TYPE(node,type) (GSK_IS_RENDER_NODE (node) && (node)->node_class->node_type == (type))