diff options
author | Benjamin Otte <otte@redhat.com> | 2019-03-04 19:33:04 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-03-04 23:41:51 +0100 |
commit | bd113aa85cd011edd11874c4e2d9353898d8f793 (patch) | |
tree | fa7ce7392574036f2f59db79a6817d777e9dba20 /gsk/gsktransform.h | |
parent | 1fecbd4241529197984ed1c717fdf91f0bb8337b (diff) | |
download | gtk+-bd113aa85cd011edd11874c4e2d9353898d8f793.tar.gz |
transform: Redo querying API
Make the API expect a tranform of the proper category instead of
doing the check ourselves and returning TRUE/FALSE.
The benefit is that the mai use case is switch (transform->category)
statements and in those we know the category and don't need to check
TRUE/FALSE.
Using the wrong matrix will now cause a g_warning().
Diffstat (limited to 'gsk/gsktransform.h')
-rw-r--r-- | gsk/gsktransform.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gsk/gsktransform.h b/gsk/gsktransform.h index 4a90b1308b..19552a0add 100644 --- a/gsk/gsktransform.h +++ b/gsk/gsktransform.h @@ -49,23 +49,23 @@ GDK_AVAILABLE_IN_ALL void gsk_transform_to_matrix (GskTransform *self, graphene_matrix_t *out_matrix); GDK_AVAILABLE_IN_ALL -gboolean gsk_transform_to_2d (GskTransform *self, +void gsk_transform_to_2d (GskTransform *self, float *out_xx, float *out_yx, float *out_xy, float *out_yy, float *out_dx, - float *out_dy) G_GNUC_WARN_UNUSED_RESULT; + float *out_dy); GDK_AVAILABLE_IN_ALL -gboolean gsk_transform_to_affine (GskTransform *self, +void gsk_transform_to_affine (GskTransform *self, float *out_scale_x, float *out_scale_y, float *out_dx, - float *out_dy) G_GNUC_WARN_UNUSED_RESULT; + float *out_dy); GDK_AVAILABLE_IN_ALL -gboolean gsk_transform_to_translate (GskTransform *self, +void gsk_transform_to_translate (GskTransform *self, float *out_dx, - float *out_dy) G_GNUC_WARN_UNUSED_RESULT; + float *out_dy); GDK_AVAILABLE_IN_ALL GskTransformCategory gsk_transform_get_category (GskTransform *self) G_GNUC_PURE; |