ClutterBehaviourScale

ClutterBehaviourScale — Behaviour controlling the scale of a set of actors

Synopsis




enum                ClutterGravity;
                    ClutterBehaviourScale;
                    ClutterBehaviourScaleClass;
ClutterBehaviour*   clutter_behaviour_scale_new         (ClutterAlpha *alpha,
                                                         gdouble scale_begin,
                                                         gdouble scale_end,
                                                         ClutterGravity gravity);
ClutterBehaviour*   clutter_behaviour_scale_newx        (ClutterAlpha *alpha,
                                                         ClutterFixed scale_begin,
                                                         ClutterFixed scale_end,
                                                         ClutterGravity gravity);


Object Hierarchy


  GObject
   +----ClutterBehaviour
         +----ClutterBehaviourScale

Properties


  "scale-begin"              gdouble               : Read / Write
  "scale-end"                gdouble               : Read / Write
  "scale-gravity"            ClutterGravity        : Read / Write

Description

FIXME

Details

enum ClutterGravity

typedef enum {
  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;

Defines the reference point of the scaling.

CLUTTER_GRAVITY_NONE
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 the actor should scale from the center

ClutterBehaviourScale

typedef struct _ClutterBehaviourScale ClutterBehaviourScale;

The ClutterBehaviourScale structure contains only private data and should not be accessed directly.


ClutterBehaviourScaleClass

typedef struct {
  ClutterBehaviourClass   parent_class;
} ClutterBehaviourScaleClass;

Class structure for ClutterBehaviourScale.


clutter_behaviour_scale_new ()

ClutterBehaviour*   clutter_behaviour_scale_new         (ClutterAlpha *alpha,
                                                         gdouble scale_begin,
                                                         gdouble scale_end,
                                                         ClutterGravity gravity);

Creates a new ClutterBehaviourScale instance.

alpha : a ClutterAlpha
scale_begin : initial scale factor
scale_end : final scale factor
gravity : FIXME: Not currently implemented
Returns : the newly created ClutterBehaviourScale

Since 0.2


clutter_behaviour_scale_newx ()

ClutterBehaviour*   clutter_behaviour_scale_newx        (ClutterAlpha *alpha,
                                                         ClutterFixed scale_begin,
                                                         ClutterFixed scale_end,
                                                         ClutterGravity gravity);

A fixed point implementation of clutter_behaviour_scale_new()

alpha : a ClutterAlpha
scale_begin : initial scale factor
scale_end : final scale factor
gravity : FIXME: Not currently implemented
Returns : the newly created ClutterBehaviourScale

Since 0.2

Property Details

The "scale-begin" property

  "scale-begin"              gdouble               : Read / Write

The initial scaling factor for the actors.

Allowed values: >= 0

Default value: 1

Since 0.2


The "scale-end" property

  "scale-end"                gdouble               : Read / Write

The final scaling factor for the actors.

Allowed values: >= 0

Default value: 1

Since 0.2


The "scale-gravity" property

  "scale-gravity"            ClutterGravity        : Read / Write

The gravity of the scaling.

Default value: CLUTTER_GRAVITY_CENTER