mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
gsk: Add implementation for gsk_render_node_get_transform()
This commit is contained in:
parent
bb9626dc29
commit
956edd83a7
@ -947,6 +947,25 @@ gsk_render_node_set_transform (GskRenderNode *node,
|
||||
node->transform_set = !graphene_matrix_is_identity (&node->transform);
|
||||
}
|
||||
|
||||
/**
|
||||
* gsk_render_node_get_transform:
|
||||
* @node: a #GskRenderNode
|
||||
* @mv: (out caller-allocates): return location for the transform matrix
|
||||
*
|
||||
* Retrieves the transform matrix set using gsk_render_node_set_transform().
|
||||
*
|
||||
* Since: 3.90
|
||||
*/
|
||||
void
|
||||
gsk_render_node_get_transform (GskRenderNode *node,
|
||||
graphene_matrix_t *mv)
|
||||
{
|
||||
g_return_if_fail (GSK_IS_RENDER_NODE (node));
|
||||
g_return_if_fail (mv != NULL);
|
||||
|
||||
graphene_matrix_init_from_matrix (mv, &node->transform);
|
||||
}
|
||||
|
||||
/**
|
||||
* gsk_render_node_set_anchor_point:
|
||||
* @node: a #GskRenderNode
|
||||
|
Loading…
Reference in New Issue
Block a user