diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-09-17 09:57:07 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-09-17 10:28:49 -0400 |
commit | bef54a382daf64aff32bd55c5e40b80b39713179 (patch) | |
tree | d9a665b93e5822e559090238e79fa707769f908d | |
parent | 6a60214e8c7f6d49f970e0a3293befe6a6a2870c (diff) | |
download | gtk+-bef54a382daf64aff32bd55c5e40b80b39713179.tar.gz |
transform: Improve docs
Add an example for reconstructing transforms.
-rw-r--r-- | gsk/gsktransform.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c index b58eb55aad..439d9340fc 100644 --- a/gsk/gsktransform.c +++ b/gsk/gsktransform.c @@ -1530,6 +1530,13 @@ gsk_transform_to_2d (GskTransform *self, * * Converts a `GskTransform` to 2D affine transformation factors. * + * To recreate an equivalent transform from the factors returned + * by this function, use + * + * gsk_transform_scale (gsk_transform_translate (NULL, + * &GRAPHENE_POINT_T (dx, dy)), + * sx, sy) + * * @self must be a 2D transformation. If you are not * sure, use * |