Small documentation additions

This commit is contained in:
Matthias Clasen 2016-08-06 23:19:40 -04:00 committed by Emmanuele Bassi
parent 7eb8646ace
commit 53266e7a15
2 changed files with 40 additions and 0 deletions

View File

@ -716,6 +716,15 @@ gsk_renderer_get_scaling_filters (GskRenderer *renderer,
*mag_filter = priv->mag_filter; *mag_filter = priv->mag_filter;
} }
/**
* gsk_renderer_set_scale_factor:
* @renderer: a #GskRenderer
* @scale_factor: the new scale factor
*
* Sets the scale factor for the renderer.
*
* Since: 3.22
*/
void void
gsk_renderer_set_scale_factor (GskRenderer *renderer, gsk_renderer_set_scale_factor (GskRenderer *renderer,
int scale_factor) int scale_factor)
@ -732,6 +741,16 @@ gsk_renderer_set_scale_factor (GskRenderer *renderer,
} }
} }
/**
* gsk_renderer_get_scale_factor:
* @renderer: a #GskRenderer
*
* Gets the scale factor for the @renderer.
*
* Returns: the scale factor
*
* Since: 3.22
*/
int int
gsk_renderer_get_scale_factor (GskRenderer *renderer) gsk_renderer_get_scale_factor (GskRenderer *renderer)
{ {
@ -742,6 +761,15 @@ gsk_renderer_get_scale_factor (GskRenderer *renderer)
return priv->scale_factor; return priv->scale_factor;
} }
/**
* gsk_renderer_set_window:
* @renderer: a #GskRenderer
* @window: the window to set
*
* Sets the window on which the @renderer is rendering.
*
* Since: 3.22
*/
void void
gsk_renderer_set_window (GskRenderer *renderer, gsk_renderer_set_window (GskRenderer *renderer,
GdkWindow *window) GdkWindow *window)

View File

@ -331,6 +331,7 @@ gsk_render_node_get_first_child (GskRenderNode *node)
/** /**
* gsk_render_node_get_last_child: * gsk_render_node_get_last_child:
* @node: a #GskRenderNode
* *
* Returns the last child of @node. * Returns the last child of @node.
* *
@ -348,6 +349,7 @@ gsk_render_node_get_last_child (GskRenderNode *node)
/** /**
* gsk_render_node_get_next_sibling: * gsk_render_node_get_next_sibling:
* @node: a #GskRenderNode
* *
* Returns the next sibling of @node. * Returns the next sibling of @node.
* *
@ -365,6 +367,7 @@ gsk_render_node_get_next_sibling (GskRenderNode *node)
/** /**
* gsk_render_node_get_previous_sibling: * gsk_render_node_get_previous_sibling:
* @node: a #GskRenderNode
* *
* Returns the previous sibling of @node. * Returns the previous sibling of @node.
* *
@ -939,6 +942,15 @@ gsk_render_node_set_transform (GskRenderNode *node,
node->transform_set = !graphene_matrix_is_identity (&node->transform); node->transform_set = !graphene_matrix_is_identity (&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.22
*/
void void
gsk_render_node_set_anchor_point (GskRenderNode *node, gsk_render_node_set_anchor_point (GskRenderNode *node,
const graphene_point3d_t *offset) const graphene_point3d_t *offset)