forked from AuroraMiddleware/gtk
gsk: Remove RenderNode::anchor-point
This commit is contained in:
parent
174d6a5613
commit
04a2c1499a
@ -44,7 +44,6 @@ gsk_render_node_get_n_children
|
||||
gsk_render_node_contains
|
||||
gsk_render_node_set_bounds
|
||||
gsk_render_node_set_transform
|
||||
gsk_render_node_set_anchor_point
|
||||
gsk_render_node_set_opacity
|
||||
gsk_render_node_set_hidden
|
||||
gsk_render_node_is_hidden
|
||||
|
@ -186,8 +186,6 @@ gsk_render_node_init (GskRenderNode *self)
|
||||
|
||||
graphene_matrix_init_identity (&self->transform);
|
||||
|
||||
graphene_point3d_init (&self->anchor_point, 0.f, 0.f, 0.f);
|
||||
|
||||
self->opacity = 1.0;
|
||||
|
||||
self->min_filter = GSK_SCALING_FILTER_NEAREST;
|
||||
@ -967,25 +965,6 @@ gsk_render_node_get_transform (GskRenderNode *node,
|
||||
graphene_matrix_init_from_matrix (mv, &node->transform);
|
||||
}
|
||||
|
||||
/**
|
||||
* gsk_render_node_set_anchor_point:
|
||||
* @node: a #GskRenderNode
|
||||
* @offset: the anchor point
|
||||
*
|
||||
* Set the anchor point used when rendering the @node.
|
||||
*
|
||||
* Since: 3.90
|
||||
*/
|
||||
void
|
||||
gsk_render_node_set_anchor_point (GskRenderNode *node,
|
||||
const graphene_point3d_t *offset)
|
||||
{
|
||||
g_return_if_fail (GSK_IS_RENDER_NODE (node));
|
||||
g_return_if_fail (node->is_mutable);
|
||||
|
||||
graphene_point3d_init_from_point (&node->anchor_point, offset);
|
||||
}
|
||||
|
||||
/**
|
||||
* gsk_render_node_set_opacity:
|
||||
* @node: a #GskRenderNode
|
||||
@ -1199,8 +1178,6 @@ gsk_render_node_update_world_matrix (GskRenderNode *node,
|
||||
if (node->transform_set)
|
||||
graphene_matrix_multiply (&tmp, &node->transform, &tmp);
|
||||
|
||||
graphene_matrix_translate (&tmp, &node->anchor_point);
|
||||
|
||||
graphene_matrix_multiply (&tmp, &parent->world_matrix, &node->world_matrix);
|
||||
}
|
||||
|
||||
|
@ -95,9 +95,6 @@ GDK_AVAILABLE_IN_3_90
|
||||
void gsk_render_node_set_transform (GskRenderNode *node,
|
||||
const graphene_matrix_t *transform);
|
||||
GDK_AVAILABLE_IN_3_90
|
||||
void gsk_render_node_set_anchor_point (GskRenderNode *node,
|
||||
const graphene_point3d_t *offset);
|
||||
GDK_AVAILABLE_IN_3_90
|
||||
void gsk_render_node_set_opacity (GskRenderNode *node,
|
||||
double opacity);
|
||||
GDK_AVAILABLE_IN_3_90
|
||||
|
@ -56,8 +56,6 @@ struct _GskRenderNode
|
||||
/* Transformations applied to the node */
|
||||
graphene_matrix_t transform;
|
||||
|
||||
graphene_point3d_t anchor_point;
|
||||
|
||||
/* Bit fields; leave at the end */
|
||||
gboolean is_mutable : 1;
|
||||
gboolean hidden : 1;
|
||||
|
Loading…
Reference in New Issue
Block a user