2008-02-07 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-actor.c: Add a note on clutter_actor_set_size()
	reguarding groups.

	* clutter/clutter-group.c: Clarify group sizing.
This commit is contained in:
Emmanuele Bassi 2008-02-07 17:08:29 +00:00
parent 18eef53cfc
commit d3e15f20eb
3 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2008-02-07 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: Add a note on clutter_actor_set_size()
reguarding groups.
* clutter/clutter-group.c: Clarify group sizing.
2008-02-07 Øyvind Kolås <pippin@o-hand.com> 2008-02-07 Øyvind Kolås <pippin@o-hand.com>
* tests/test-shader.c: (button_release_cb): added simplified * tests/test-shader.c: (button_release_cb): added simplified

View File

@ -2198,8 +2198,7 @@ clutter_actor_get_coords (ClutterActor *self,
* @x: New left position of actor in pixels. * @x: New left position of actor in pixels.
* @y: New top position of actor in pixels. * @y: New top position of actor in pixels.
* *
* Sets the actors position in pixels relative to any * Sets the actors position in pixels relative to any parent actor.
* parent actor.
*/ */
void void
clutter_actor_set_position (ClutterActor *self, clutter_actor_set_position (ClutterActor *self,
@ -2354,8 +2353,15 @@ clutter_actor_set_size_internalu (ClutterActor *self,
* @width: New width of actor in pixels, or -1 * @width: New width of actor in pixels, or -1
* @height: New height of actor in pixels, or -1 * @height: New height of actor in pixels, or -1
* *
* Sets the actors size in pixels. If @width and/or @height are -1 the * Sets the actors size in pixels.
* actor will assume the same size of its bounding box. *
* If @width and/or @height are -1 the actor will assume the same size
* of its bounding box.
*
* <note>This function is a "request" to the #ClutterActor. Depending
* on the actual implementation, calling clutter_actor_set_size() might
* not produce visible results. Calling this function on a #ClutterGroup,
* for instance, will not resize the group.</note>
*/ */
void void
clutter_actor_set_size (ClutterActor *self, clutter_actor_set_size (ClutterActor *self,

View File

@ -34,7 +34,9 @@
* *
* A #ClutterGroup's size is defined by the size and position of it * A #ClutterGroup's size is defined by the size and position of it
* it children. Resize requests via parent #ClutterActor API will be * it children. Resize requests via parent #ClutterActor API will be
* ignored. * ignored, i.e. calling clutter_actor_set_size() on a #ClutterGroup
* will not resize the group nor its children. If you want to resize
* a group, call clutter_actor_set_scale().
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H