mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
2008-01-21 Emmanuele Bassi,,, <ebassi@sprite>
* clutter/clutter-behaviour-depth.h: * clutter/clutter-behaviour-depth.c: (clutter_behaviour_depth_set_bounds), (clutter_behaviour_depth_get_bounds): Add the depth-start and depth-end accessors. * tests/test-depth.c (timeline_completed): Use set_bounds() instead of g_object_set(). * clutter.symbols: Add clutter_behaviour_depth_set_bounds() and clutter_behaviour_opacity_get_bounds() to the list of public symbols.
This commit is contained in:
parent
689f026cb5
commit
e0fc055dd2
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
||||
2008-01-21 Emmanuele Bassi,,, <ebassi@sprite>
|
||||
|
||||
* clutter/clutter-behaviour-depth.h:
|
||||
* clutter/clutter-behaviour-depth.c:
|
||||
(clutter_behaviour_depth_set_bounds),
|
||||
(clutter_behaviour_depth_get_bounds): Add the depth-start and
|
||||
depth-end accessors.
|
||||
|
||||
* tests/test-depth.c (timeline_completed): Use set_bounds()
|
||||
instead of g_object_set().
|
||||
|
||||
* clutter.symbols: Add clutter_behaviour_depth_set_bounds()
|
||||
and clutter_behaviour_opacity_get_bounds() to the list of
|
||||
public symbols.
|
||||
|
||||
2008-01-21 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-behaviour-scale.c: Use separate variables for
|
||||
|
@ -107,8 +107,10 @@ clutter_behaviour_bspline_new
|
||||
clutter_behaviour_bspline_set_origin
|
||||
clutter_behaviour_bspline_split
|
||||
clutter_behaviour_bspline_truncate
|
||||
clutter_behaviour_depth_get_bounds
|
||||
clutter_behaviour_depth_get_type
|
||||
clutter_behaviour_depth_new
|
||||
clutter_behaviour_depth_set_bounds
|
||||
clutter_behaviour_ellipse_get_angle_begin
|
||||
clutter_behaviour_ellipse_get_angle_beginx
|
||||
clutter_behaviour_ellipse_get_angle_end
|
||||
|
@ -203,8 +203,8 @@ clutter_behaviour_depth_init (ClutterBehaviourDepth *depth)
|
||||
/**
|
||||
* clutter_behaviour_depth_new:
|
||||
* @alpha: a #ClutterAlpha or %NULL
|
||||
* @depth_start: start depth
|
||||
* @depth_end: end depth
|
||||
* @depth_start: initial value of the depth
|
||||
* @depth_end: final value of the depth
|
||||
*
|
||||
* Creates a new #ClutterBehaviourDepth which can be used to control
|
||||
* the ClutterActor:depth property of a set of #ClutterActor<!-- -->s.
|
||||
@ -226,3 +226,65 @@ clutter_behaviour_depth_new (ClutterAlpha *alpha,
|
||||
"depth-end", depth_end,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_behaviour_depth_set_bounds:
|
||||
* @behaviour: a #ClutterBehaviourDepth
|
||||
* @depth_start: initial value of the depth
|
||||
* @depth_end: final value of the depth
|
||||
*
|
||||
* Sets the boundaries of the @behaviour.
|
||||
*
|
||||
* Since: 0.6
|
||||
*/
|
||||
void
|
||||
clutter_behaviour_depth_set_bounds (ClutterBehaviourDepth *behaviour,
|
||||
gint depth_start,
|
||||
gint depth_end)
|
||||
{
|
||||
ClutterBehaviourDepthPrivate *priv;
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_DEPTH (behaviour));
|
||||
|
||||
priv = behaviour->priv;
|
||||
|
||||
g_object_freeze_notify (G_OBJECT (behaviour));
|
||||
|
||||
if (priv->depth_start != depth_start)
|
||||
{
|
||||
priv->depth_start = depth_start;
|
||||
g_object_notify (G_OBJECT (behaviour), "depth-start");
|
||||
}
|
||||
|
||||
if (priv->depth_end != depth_end)
|
||||
{
|
||||
priv->depth_end = depth_end;
|
||||
g_object_notify (G_OBJECT (behaviour), "depth-end");
|
||||
}
|
||||
|
||||
g_object_thaw_notify (G_OBJECT (behaviour));
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_behaviour_depth_get_bounds:
|
||||
* @behaviour: a #ClutterBehaviourDepth
|
||||
* @depth_start: return location for the initial depth value, or %NULL
|
||||
* @depth_end: return location for the final depth value, or %NULL
|
||||
*
|
||||
* Gets the boundaries of the @behaviour
|
||||
*
|
||||
* Since: 0.6
|
||||
*/
|
||||
void
|
||||
clutter_behaviour_depth_get_bounds (ClutterBehaviourDepth *behaviour,
|
||||
gint *depth_start,
|
||||
gint *depth_end)
|
||||
{
|
||||
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_DEPTH (behaviour));
|
||||
|
||||
if (depth_start)
|
||||
*depth_start = behaviour->priv->depth_start;
|
||||
|
||||
if (depth_end)
|
||||
*depth_end = behaviour->priv->depth_end;
|
||||
}
|
||||
|
@ -62,6 +62,13 @@ ClutterBehaviour *clutter_behaviour_depth_new (ClutterAlpha *alpha,
|
||||
gint depth_start,
|
||||
gint depth_end);
|
||||
|
||||
void clutter_behaviour_depth_set_bounds (ClutterBehaviourDepth *behaviour,
|
||||
gint depth_start,
|
||||
gint depth_end);
|
||||
void clutter_behaviour_depth_get_bounds (ClutterBehaviourDepth *behaviour,
|
||||
gint *depth_start,
|
||||
gint *depth_end);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __CLUTTER_BEHAVIOUR_DEPTH__ */
|
||||
|
@ -1,3 +1,8 @@
|
||||
2008-01-21 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter-sections.txt: Add ClutterBehaviourDepth properties
|
||||
accessors.
|
||||
|
||||
2008-01-18 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* subclassing-ClutterActor.sgml: Fix up the wording and the
|
||||
|
@ -838,12 +838,15 @@ clutter_log2x
|
||||
clutter_pow2x
|
||||
clutter_powx
|
||||
clutter_qmulx
|
||||
clutter_qdivx
|
||||
clutter_tani
|
||||
|
||||
<SUBSECTION Private>
|
||||
CFX_DIV
|
||||
CFX_INT
|
||||
CFX_MUL
|
||||
CFX_QMUL
|
||||
CFX_QDIV
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
@ -1082,6 +1085,8 @@ clutter_effect_template_get_type
|
||||
ClutterBehaviourDepth
|
||||
ClutterBehaviourDepthClass
|
||||
clutter_behaviour_depth_new
|
||||
clutter_behaviour_depth_set_bounds
|
||||
clutter_behaviour_depth_get_bounds
|
||||
<SUBSECTION Standard>
|
||||
CLUTTER_BEHAVIOUR_DEPTH
|
||||
CLUTTER_IS_BEHAVIOUR_DEPTH
|
||||
|
@ -23,10 +23,8 @@ timeline_completed (ClutterTimeline *timeline,
|
||||
zoom_in = TRUE;
|
||||
}
|
||||
|
||||
g_object_set (G_OBJECT (d_behave),
|
||||
"depth-start", depth_start,
|
||||
"depth-end", depth_end,
|
||||
NULL);
|
||||
clutter_behaviour_depth_set_bounds (CLUTTER_BEHAVIOUR_DEPTH (d_behave),
|
||||
depth_start, depth_end);
|
||||
|
||||
clutter_timeline_rewind (timeline);
|
||||
clutter_timeline_start (timeline);
|
||||
|
Loading…
Reference in New Issue
Block a user