[clutter] docs: give more hints about how to replace the anchor-point
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] docs: give more hints about how to replace the anchor-point
- Date: Wed, 22 Jul 2015 17:41:50 +0000 (UTC)
commit 8f976cad44461ff05946bb771baff8cfbe06a1b0
Author: Stefan Sauer <ensonic users sf net>
Date: Wed Jul 22 18:28:41 2015 +0200
docs: give more hints about how to replace the anchor-point
In addition to pivot-point also mention _set_translation().
clutter/clutter-actor.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 60c8527..b3e7ed6 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -14081,7 +14081,8 @@ clutter_actor_get_anchor_point_gravity (ClutterActor *self)
*
* Since: 0.6
*
- * Deprecated: 1.12: Use #ClutterActor:pivot-point instead.
+ * Deprecated: 1.12: Use #ClutterActor:pivot-point and
+ * clutter_actor_set_translation() instead.
*/
void
clutter_actor_move_anchor_point (ClutterActor *self,
@@ -14128,7 +14129,8 @@ clutter_actor_move_anchor_point (ClutterActor *self,
*
* Since: 0.6
*
- * Deprecated: 1.12: Use #ClutterActor:pivot-point instead.
+ * Deprecated: 1.12: Use #ClutterActor:pivot-point and
+ * clutter_actor_set_translation() instead.
*/
void
clutter_actor_move_anchor_point_from_gravity (ClutterActor *self,
@@ -14179,7 +14181,9 @@ clutter_actor_move_anchor_point_from_gravity (ClutterActor *self,
*
* Since: 0.6
*
- * Deprecated: 1.12: Use #ClutterActor:pivot-point instead.
+ * Deprecated: 1.12: Use #ClutterActor:pivot-point and
+ * clutter_actor_set_translation() instead. E.g. For %CLUTTER_GRAVITY_CENTER set
+ * pivot_point to (0.5,0.5) and the translation to (width/2,height/2).
*/
void
clutter_actor_set_anchor_point_from_gravity (ClutterActor *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]