mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
actor-box: Constify arguments for union
The input arguments for clutter_actor_box_union() should be constified, since they will not be modified by the function.
This commit is contained in:
parent
45b6d7d47a
commit
e1a1050a39
@ -9678,18 +9678,18 @@ clutter_actor_box_clamp_to_pixel (ClutterActorBox *box)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_actor_box_union:
|
* clutter_actor_box_union:
|
||||||
* @a: (in): the first #ClutterActorBox
|
* @a: (in) the first #ClutterActorBox
|
||||||
* @a: (in): a second #ClutterActorBox
|
* @b: (in): the second #ClutterActorBox
|
||||||
* @result: (out): the #ClutterActorBox representing a union of @a and
|
* @result: (out): the #ClutterActorBox representing a union
|
||||||
* @b
|
* of @a and @b
|
||||||
*
|
*
|
||||||
* Unions the two boxes @a and @b and stores the result in @result.
|
* Unions the two boxes @a and @b and stores the result in @result.
|
||||||
*
|
*
|
||||||
* Since: 1.4
|
* Since: 1.4
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clutter_actor_box_union (ClutterActorBox *a,
|
clutter_actor_box_union (const ClutterActorBox *a,
|
||||||
ClutterActorBox *b,
|
const ClutterActorBox *b,
|
||||||
ClutterActorBox *result)
|
ClutterActorBox *result)
|
||||||
{
|
{
|
||||||
g_return_if_fail (a != NULL);
|
g_return_if_fail (a != NULL);
|
||||||
|
@ -185,8 +185,8 @@ void clutter_actor_box_interpolate (const ClutterActorBox *initial
|
|||||||
gdouble progress,
|
gdouble progress,
|
||||||
ClutterActorBox *result);
|
ClutterActorBox *result);
|
||||||
void clutter_actor_box_clamp_to_pixel (ClutterActorBox *box);
|
void clutter_actor_box_clamp_to_pixel (ClutterActorBox *box);
|
||||||
void clutter_actor_box_union (ClutterActorBox *a,
|
void clutter_actor_box_union (const ClutterActorBox *a,
|
||||||
ClutterActorBox *b,
|
const ClutterActorBox *b,
|
||||||
ClutterActorBox *result);
|
ClutterActorBox *result);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user