forked from AuroraMiddleware/gtk
snapshot: Remove gtk_snapshot_get_offset()
We use append() functions for everything now, thank you very much.
This commit is contained in:
parent
1ef250f44a
commit
2bdc0748e5
@ -4403,7 +4403,6 @@ gtk_snapshot_push_cross_fade
|
||||
gtk_snapshot_push_blend
|
||||
gtk_snapshot_pop
|
||||
gtk_snapshot_offset
|
||||
gtk_snapshot_get_offset
|
||||
gtk_snapshot_append_node
|
||||
gtk_snapshot_append_cairo
|
||||
gtk_snapshot_append_texture
|
||||
|
@ -1167,38 +1167,6 @@ gtk_snapshot_offset (GtkSnapshot *snapshot,
|
||||
current_state->transform = gtk_transform_translate (current_state->transform, &GRAPHENE_POINT_INIT (x, y));
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_snapshot_get_offset:
|
||||
* @snapshot: a #GtkSnapshot
|
||||
* @x: (out) (optional): return location for x offset
|
||||
* @y: (out) (optional): return location for y offset
|
||||
*
|
||||
* Queries the offset managed by @snapshot. This offset is the
|
||||
* accumulated sum of calls to gtk_snapshot_offset().
|
||||
*
|
||||
* Use this offset to determine how to offset nodes that you
|
||||
* manually add to the snapshot using
|
||||
* gtk_snapshot_append().
|
||||
*
|
||||
* Note that other functions that add nodes for you, such as
|
||||
* gtk_snapshot_append_cairo() will add this offset for
|
||||
* you.
|
||||
**/
|
||||
void
|
||||
gtk_snapshot_get_offset (GtkSnapshot *snapshot,
|
||||
int *x,
|
||||
int *y)
|
||||
{
|
||||
/* FIXME: remove this function */
|
||||
gtk_snapshot_ensure_identity (snapshot);
|
||||
|
||||
if (x)
|
||||
*x = 0;
|
||||
|
||||
if (y)
|
||||
*y = 0;
|
||||
}
|
||||
|
||||
void
|
||||
gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
|
||||
GskRenderNode *node)
|
||||
|
@ -109,11 +109,6 @@ void gtk_snapshot_offset (GtkSnapshot
|
||||
int x,
|
||||
int y);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_snapshot_get_offset (GtkSnapshot *snapshot,
|
||||
int *x,
|
||||
int *y);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_snapshot_append_node (GtkSnapshot *snapshot,
|
||||
GskRenderNode *node);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
Loading…
Reference in New Issue
Block a user