Clutter 0.8.2 Reference Manual | ||||
---|---|---|---|---|
enum ClutterGravity; ClutterBehaviourScale; ClutterBehaviourScaleClass; ClutterBehaviour* clutter_behaviour_scale_new (ClutterAlpha *alpha, gdouble x_scale_start, gdouble y_scale_start, gdouble x_scale_end, gdouble y_scale_end); ClutterBehaviour* clutter_behaviour_scale_newx (ClutterAlpha *alpha, ClutterFixed x_scale_start, ClutterFixed y_scale_start, ClutterFixed x_scale_end, ClutterFixed y_scale_end); void clutter_behaviour_scale_set_bounds (ClutterBehaviourScale *scale, gdouble x_scale_start, gdouble y_scale_start, gdouble x_scale_end, gdouble y_scale_end); void clutter_behaviour_scale_get_bounds (ClutterBehaviourScale *scale, gdouble *x_scale_start, gdouble *y_scale_start, gdouble *x_scale_end, gdouble *y_scale_end); void clutter_behaviour_scale_set_boundsx (ClutterBehaviourScale *scale, ClutterFixed x_scale_start, ClutterFixed y_scale_start, ClutterFixed x_scale_end, ClutterFixed y_scale_end); void clutter_behaviour_scale_get_boundsx (ClutterBehaviourScale *scale, ClutterFixed *x_scale_start, ClutterFixed *y_scale_start, ClutterFixed *x_scale_end, ClutterFixed *y_scale_end);
"x-scale-end" gdouble : Read / Write "x-scale-start" gdouble : Read / Write "y-scale-end" gdouble : Read / Write "y-scale-start" gdouble : Read / Write
typedef enum { /*< prefix=CLUTTER_GRAVITY >*/ CLUTTER_GRAVITY_NONE = 0, CLUTTER_GRAVITY_NORTH, CLUTTER_GRAVITY_NORTH_EAST, CLUTTER_GRAVITY_EAST, CLUTTER_GRAVITY_SOUTH_EAST, CLUTTER_GRAVITY_SOUTH, CLUTTER_GRAVITY_SOUTH_WEST, CLUTTER_GRAVITY_WEST, CLUTTER_GRAVITY_NORTH_WEST, CLUTTER_GRAVITY_CENTER } ClutterGravity;
Gravity of the scaling operations. When a gravity different than
CLUTTER_GRAVITY_NONE
is used, an actor is scaled keeping the position
of the specified portion at the same coordinates.
Do not apply any gravity | |
Scale from topmost downwards | |
Scale from the top right corner | |
Scale from the right side | |
Scale from the bottom right corner | |
Scale from the bottom upwards | |
Scale from the bottom left corner | |
Scale from the left side | |
Scale from the top left corner | |
Scale from the center. |
Since 0.2
typedef struct { ClutterBehaviourClass parent_class; } ClutterBehaviourScaleClass;
ClutterBehaviour* clutter_behaviour_scale_new (ClutterAlpha *alpha, gdouble x_scale_start, gdouble y_scale_start, gdouble x_scale_end, gdouble y_scale_end);
Creates a new ClutterBehaviourScale instance.
|
a ClutterAlpha |
|
initial scale factor on the X axis |
|
initial scale factor on the Y axis |
|
final scale factor on the X axis |
|
final scale factor on the Y axis |
Returns : |
the newly created ClutterBehaviourScale |
Since 0.2
ClutterBehaviour* clutter_behaviour_scale_newx (ClutterAlpha *alpha, ClutterFixed x_scale_start, ClutterFixed y_scale_start, ClutterFixed x_scale_end, ClutterFixed y_scale_end);
A fixed point implementation of clutter_behaviour_scale_new()
|
a ClutterAlpha |
|
initial scale factor on the X axis |
|
initial scale factor on the Y axis |
|
final scale factor on the X axis |
|
final scale factor on the Y axis |
Returns : |
the newly created ClutterBehaviourScale |
Since 0.2
void clutter_behaviour_scale_set_bounds (ClutterBehaviourScale *scale, gdouble x_scale_start, gdouble y_scale_start, gdouble x_scale_end, gdouble y_scale_end);
Sets the bounds used by scale behaviour.
|
a ClutterBehaviourScale |
|
initial scale factor on the X axis |
|
initial scale factor on the Y axis |
|
final scale factor on the X axis |
|
final scale factor on the Y axis |
Since 0.6
void clutter_behaviour_scale_get_bounds (ClutterBehaviourScale *scale, gdouble *x_scale_start, gdouble *y_scale_start, gdouble *x_scale_end, gdouble *y_scale_end);
Retrieves the bounds used by scale behaviour.
|
a ClutterBehaviourScale |
|
return location for the initial scale factor on the X
axis, or NULL
|
|
return location for the initial scale factor on the Y
axis, or NULL
|
|
return location for the final scale factor on the X axis,
or NULL
|
|
return location for the final scale factor on the Y axis,
or NULL
|
Since 0.4
void clutter_behaviour_scale_set_boundsx (ClutterBehaviourScale *scale, ClutterFixed x_scale_start, ClutterFixed y_scale_start, ClutterFixed x_scale_end, ClutterFixed y_scale_end);
Fixed point version of clutter_behaviour_scale_set_bounds()
.
Sets the bounds used by scale behaviour.
|
a ClutterBehaviourScale |
|
initial scale factor on the X axis |
|
initial scale factor on the Y axis |
|
final scale factor on the X axis |
|
final scale factor on the Y axis |
Since 0.6
void clutter_behaviour_scale_get_boundsx (ClutterBehaviourScale *scale, ClutterFixed *x_scale_start, ClutterFixed *y_scale_start, ClutterFixed *x_scale_end, ClutterFixed *y_scale_end);
Fixed point version of clutter_behaviour_scale_get_bounds()
.
Retrieves the bounds used by scale behaviour.
|
a ClutterBehaviourScale |
|
return location for the initial scale factor on the X
axis, or NULL
|
|
return location for the initial scale factor on the Y
axis, or NULL
|
|
return location for the final scale factor on the X axis,
or NULL
|
|
return location for the final scale factor on the Y axis,
or NULL
|
Since 0.4
"x-scale-end"
property"x-scale-end" gdouble : Read / Write
The final scaling factor on the X axis for the actors.
Allowed values: >= 0
Default value: 1
Since 0.6
"x-scale-start"
property"x-scale-start" gdouble : Read / Write
The initial scaling factor on the X axis for the actors.
Allowed values: >= 0
Default value: 1
Since 0.6
"y-scale-end"
property"y-scale-end" gdouble : Read / Write
The final scaling factor on the Y axis for the actors.
Allowed values: >= 0
Default value: 1
Since 0.6
"y-scale-start"
property"y-scale-start" gdouble : Read / Write
The initial scaling factor on the Y axis for the actors.
Allowed values: >= 0
Default value: 1
Since 0.6