mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
Even more documentation fixes
This commit is contained in:
parent
790ef05b46
commit
f57edd70d3
@ -1196,7 +1196,7 @@ clutter_behaviour_ellipse_get_tilt (ClutterBehaviourEllipse *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_behaviour_ellipse_get_angle_tilt_yx
|
* clutter_behaviour_ellipse_get_tiltx
|
||||||
* @self: a #ClutterBehaviourEllipse
|
* @self: a #ClutterBehaviourEllipse
|
||||||
* @angle_tilt_x: #ClutterAngle location for tilt of the elipse around the
|
* @angle_tilt_x: #ClutterAngle location for tilt of the elipse around the
|
||||||
* center in X axis, or NULL.
|
* center in X axis, or NULL.
|
||||||
|
@ -61,17 +61,31 @@ typedef struct _ClutterBehaviourEllipseClass ClutterBehaviourEllipseClass;
|
|||||||
|
|
||||||
struct _ClutterBehaviourEllipse
|
struct _ClutterBehaviourEllipse
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterBehaviour parent_instance;
|
ClutterBehaviour parent_instance;
|
||||||
ClutterBehaviourEllipsePrivate *priv;
|
ClutterBehaviourEllipsePrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterBehaviourEllipseClass
|
||||||
|
* @knot_reached: signal class handler for the
|
||||||
|
* ClutterBehaviourEllipse::knot_reached signal
|
||||||
|
*
|
||||||
|
* Ellipse behaviour class
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
struct _ClutterBehaviourEllipseClass
|
struct _ClutterBehaviourEllipseClass
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterBehaviourClass parent_class;
|
ClutterBehaviourClass parent_class;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
void (*knot_reached) (ClutterBehaviourEllipse *ellipseb,
|
void (*knot_reached) (ClutterBehaviourEllipse *ellipseb,
|
||||||
const ClutterKnot *knot);
|
const ClutterKnot *knot);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
/* padding, for future expansion */
|
||||||
void (*_clutter_ellipse_1) (void);
|
void (*_clutter_ellipse_1) (void);
|
||||||
void (*_clutter_ellipse_2) (void);
|
void (*_clutter_ellipse_2) (void);
|
||||||
void (*_clutter_ellipse_3) (void);
|
void (*_clutter_ellipse_3) (void);
|
||||||
|
@ -61,17 +61,28 @@ typedef struct _ClutterBehaviourPathClass ClutterBehaviourPathClass;
|
|||||||
|
|
||||||
struct _ClutterBehaviourPath
|
struct _ClutterBehaviourPath
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterBehaviour parent;
|
ClutterBehaviour parent;
|
||||||
ClutterBehaviourPathPrivate *priv;
|
ClutterBehaviourPathPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterBehaviourPathClass
|
||||||
|
* @knot_reached: signal class handler for the
|
||||||
|
* ClutterBehaviourPath::knot_reached signal
|
||||||
|
*
|
||||||
|
* Since 0.2
|
||||||
|
*/
|
||||||
struct _ClutterBehaviourPathClass
|
struct _ClutterBehaviourPathClass
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterBehaviourClass parent_class;
|
ClutterBehaviourClass parent_class;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
void (*knot_reached) (ClutterBehaviourPath *pathb,
|
void (*knot_reached) (ClutterBehaviourPath *pathb,
|
||||||
const ClutterKnot *knot);
|
const ClutterKnot *knot);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
void (*_clutter_path_1) (void);
|
void (*_clutter_path_1) (void);
|
||||||
void (*_clutter_path_2) (void);
|
void (*_clutter_path_2) (void);
|
||||||
void (*_clutter_path_3) (void);
|
void (*_clutter_path_3) (void);
|
||||||
|
@ -616,6 +616,16 @@ clutter_behaviour_rotate_get_bounds (ClutterBehaviourRotate *rotate,
|
|||||||
*angle_end = CLUTTER_FIXED_TO_DOUBLE (priv->angle_end);
|
*angle_end = CLUTTER_FIXED_TO_DOUBLE (priv->angle_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_behaviour_rotate_set_bounds:
|
||||||
|
* @rotate: a #ClutterBehaviourRotate
|
||||||
|
* @angle_begin: initial angle
|
||||||
|
* @angle_end: final angle
|
||||||
|
*
|
||||||
|
* Sets the initial and final angles of a rotation behaviour.
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
clutter_behaviour_rotate_set_bounds (ClutterBehaviourRotate *rotate,
|
clutter_behaviour_rotate_set_bounds (ClutterBehaviourRotate *rotate,
|
||||||
gdouble angle_begin,
|
gdouble angle_begin,
|
||||||
@ -629,7 +639,7 @@ clutter_behaviour_rotate_set_bounds (ClutterBehaviourRotate *rotate,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_behaviour_rotate_get_bounds:
|
* clutter_behaviour_rotate_get_boundsx:
|
||||||
* @rotate: a #ClutterBehaviourRotate
|
* @rotate: a #ClutterBehaviourRotate
|
||||||
* @angle_begin: return value for the initial angle
|
* @angle_begin: return value for the initial angle
|
||||||
* @angle_end: return value for the final angle
|
* @angle_end: return value for the final angle
|
||||||
@ -657,6 +667,16 @@ clutter_behaviour_rotate_get_boundsx (ClutterBehaviourRotate *rotate,
|
|||||||
*angle_end = priv->angle_end;
|
*angle_end = priv->angle_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_behaviour_rotate_set_boundsx:
|
||||||
|
* @rotate: a #ClutterBehaviourRotate
|
||||||
|
* @angle_begin: initial angle, in fixed point notation
|
||||||
|
* @angle_end: final angle, in fixed point notation
|
||||||
|
*
|
||||||
|
* Fixed point version of clutter_behaviour_rotate_set_bounds().
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
clutter_behaviour_rotate_set_boundsx (ClutterBehaviourRotate *rotate,
|
clutter_behaviour_rotate_set_boundsx (ClutterBehaviourRotate *rotate,
|
||||||
ClutterFixed angle_begin,
|
ClutterFixed angle_begin,
|
||||||
|
@ -61,13 +61,15 @@ typedef struct _ClutterBehaviourPrivate ClutterBehaviourPrivate;
|
|||||||
typedef struct _ClutterBehaviourClass ClutterBehaviourClass;
|
typedef struct _ClutterBehaviourClass ClutterBehaviourClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClutterBehaviourFunction:
|
* ClutterBehaviourForeachFunc:
|
||||||
* @behaviour: the #ClutterBehaviour
|
* @behaviour: the #ClutterBehaviour
|
||||||
* @actor: an actor driven by @behaviour
|
* @actor: an actor driven by @behaviour
|
||||||
* @data: optional data passed to the function
|
* @data: optional data passed to the function
|
||||||
*
|
*
|
||||||
* This function is passed to clutter_behaviour_foreach_actor() and
|
* This function is passed to clutter_behaviour_foreach_actor() and
|
||||||
* will be called for each actor driven by @behaviour.
|
* will be called for each actor driven by @behaviour.
|
||||||
|
*
|
||||||
|
* Since: 0.2
|
||||||
*/
|
*/
|
||||||
typedef void (*ClutterBehaviourForeachFunc) (ClutterBehaviour *behaviour,
|
typedef void (*ClutterBehaviourForeachFunc) (ClutterBehaviour *behaviour,
|
||||||
ClutterActor *actor,
|
ClutterActor *actor,
|
||||||
@ -80,19 +82,36 @@ struct _ClutterBehaviour
|
|||||||
ClutterBehaviourPrivate *priv;
|
ClutterBehaviourPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterBehaviourClass
|
||||||
|
* @alpha_notify: virtual function, called each time the #ClutterAlpha
|
||||||
|
* computes a new alpha value; the actors to which the behaviour applies
|
||||||
|
* should be changed in this function. Every subclass of #ClutterBehaviour
|
||||||
|
* must implement this virtual function
|
||||||
|
* @applied: signal class handler for the ClutterBehaviour::applied signal
|
||||||
|
* @removed: signal class handler for the ClutterBehaviour::removed signal
|
||||||
|
*
|
||||||
|
* Base class for behaviours.
|
||||||
|
*
|
||||||
|
* Since: 0.2
|
||||||
|
*/
|
||||||
struct _ClutterBehaviourClass
|
struct _ClutterBehaviourClass
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
GObjectClass parent_class;
|
GObjectClass parent_class;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
/* vfunc, not signal */
|
/* vfunc, not signal */
|
||||||
void (*alpha_notify) (ClutterBehaviour *behave,
|
void (*alpha_notify) (ClutterBehaviour *behave,
|
||||||
guint32 alpha_value);
|
guint32 alpha_value);
|
||||||
|
|
||||||
|
/* signals */
|
||||||
void (*applied) (ClutterBehaviour *behave,
|
void (*applied) (ClutterBehaviour *behave,
|
||||||
ClutterActor *actor);
|
ClutterActor *actor);
|
||||||
void (*removed) (ClutterBehaviour *behave,
|
void (*removed) (ClutterBehaviour *behave,
|
||||||
ClutterActor *actor);
|
ClutterActor *actor);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
/* padding, for future expansion */
|
/* padding, for future expansion */
|
||||||
void (*_clutter_behaviour1) (void);
|
void (*_clutter_behaviour1) (void);
|
||||||
void (*_clutter_behaviour2) (void);
|
void (*_clutter_behaviour2) (void);
|
||||||
|
@ -33,9 +33,8 @@ typedef struct _ClutterBoxClass ClutterBoxClass;
|
|||||||
|
|
||||||
struct _ClutterBox
|
struct _ClutterBox
|
||||||
{
|
{
|
||||||
ClutterActor parent_instance;
|
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
|
ClutterActor parent_instance;
|
||||||
|
|
||||||
/* We need to put these in the instance structure, since this
|
/* We need to put these in the instance structure, since this
|
||||||
* is an abstract class meant to be subclassed; think of these
|
* is an abstract class meant to be subclassed; think of these
|
||||||
@ -58,16 +57,30 @@ struct _ClutterBox
|
|||||||
ClutterPadding default_padding;
|
ClutterPadding default_padding;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterBoxClass:
|
||||||
|
* @pack_child: virtual function, called when packing a new child. All
|
||||||
|
* #ClutterBox subclasses must implement this function
|
||||||
|
* @unpack_child: virtual function, called when unpacking a child. All
|
||||||
|
* #ClutterBox subclasses must implement this function
|
||||||
|
*
|
||||||
|
* Base class for layout containers
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
struct _ClutterBoxClass
|
struct _ClutterBoxClass
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterActorClass parent_class;
|
ClutterActorClass parent_class;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
/* vfuncs, not signals */
|
/* vfuncs, not signals */
|
||||||
void (* pack_child) (ClutterBox *box,
|
void (* pack_child) (ClutterBox *box,
|
||||||
ClutterBoxChild *child);
|
ClutterBoxChild *child);
|
||||||
void (* unpack_child) (ClutterBox *box,
|
void (* unpack_child) (ClutterBox *box,
|
||||||
ClutterBoxChild *child);
|
ClutterBoxChild *child);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
/* padding, for future expansion */
|
/* padding, for future expansion */
|
||||||
void (*_clutter_reserved1) (void);
|
void (*_clutter_reserved1) (void);
|
||||||
void (*_clutter_reserved2) (void);
|
void (*_clutter_reserved2) (void);
|
||||||
|
@ -35,6 +35,15 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
typedef struct _ClutterColor ClutterColor;
|
typedef struct _ClutterColor ClutterColor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterColor:
|
||||||
|
* @red: red component, between 0 and 255
|
||||||
|
* @green: green component, between 0 and 255
|
||||||
|
* @blue: blue component, between 0 and 255
|
||||||
|
* @alpha: alpha component, between 0 and 255
|
||||||
|
*
|
||||||
|
* Color representation.
|
||||||
|
*/
|
||||||
struct _ClutterColor
|
struct _ClutterColor
|
||||||
{
|
{
|
||||||
guint8 red;
|
guint8 red;
|
||||||
|
@ -41,10 +41,24 @@ G_BEGIN_DECLS
|
|||||||
typedef struct _ClutterContainer ClutterContainer; /* dummy */
|
typedef struct _ClutterContainer ClutterContainer; /* dummy */
|
||||||
typedef struct _ClutterContainerIface ClutterContainerIface;
|
typedef struct _ClutterContainerIface ClutterContainerIface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterContainerIface:
|
||||||
|
* @add: virtual function for adding an actor to the container
|
||||||
|
* @remove: virtual function for removing an actor from the container
|
||||||
|
* @foreach: virtual function for iterating over the container's children
|
||||||
|
* @actor_added: signal class handler for ClutterContainer::actor_added
|
||||||
|
* @actor_removed: signal class handler for ClutterContainer::actor_removed
|
||||||
|
*
|
||||||
|
* Base interface for container actors.
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
struct _ClutterContainerIface
|
struct _ClutterContainerIface
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
GTypeInterface g_iface;
|
GTypeInterface g_iface;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
void (* add) (ClutterContainer *container,
|
void (* add) (ClutterContainer *container,
|
||||||
ClutterActor *actor);
|
ClutterActor *actor);
|
||||||
void (* remove) (ClutterContainer *container,
|
void (* remove) (ClutterContainer *container,
|
||||||
|
@ -34,6 +34,15 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterEffectCompleteFunc:
|
||||||
|
* @actor: a #ClutterActor
|
||||||
|
* @user_data: user data
|
||||||
|
*
|
||||||
|
* Callback function invoked when an effect is complete.
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
typedef void (*ClutterEffectCompleteFunc) (ClutterActor *actor,
|
typedef void (*ClutterEffectCompleteFunc) (ClutterActor *actor,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
@ -66,17 +75,16 @@ typedef struct _ClutterEffectTemplateClass ClutterEffectTemplateClass;
|
|||||||
|
|
||||||
struct _ClutterEffectTemplate
|
struct _ClutterEffectTemplate
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
GObject parent_instance;
|
GObject parent_instance;
|
||||||
|
|
||||||
/*< private >*/
|
|
||||||
ClutterEffectTemplatePrivate *priv;
|
ClutterEffectTemplatePrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _ClutterEffectTemplateClass
|
struct _ClutterEffectTemplateClass
|
||||||
{
|
{
|
||||||
GObjectClass parent_class;
|
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
|
GObjectClass parent_class;
|
||||||
|
|
||||||
/* padding, for future expansion */
|
/* padding, for future expansion */
|
||||||
void (*_clutter_reserved1) (void);
|
void (*_clutter_reserved1) (void);
|
||||||
@ -150,4 +158,3 @@ ClutterTimeline * clutter_effect_rotate_z (ClutterEffectTemplate *template_,
|
|||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* _CLUTTER_EFFECT */
|
#endif /* _CLUTTER_EFFECT */
|
||||||
|
|
||||||
|
@ -69,10 +69,24 @@ struct _ClutterEntry
|
|||||||
ClutterEntryPrivate *priv;
|
ClutterEntryPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterEntryClass:
|
||||||
|
* @paint_cursor: virtual function for subclasses to use to draw a custom
|
||||||
|
* cursor instead of the default one
|
||||||
|
* @text_changed: signal class handler for ClutterEntry::text-changed
|
||||||
|
* @cursor_event: signal class handler for ClutterEntry::cursor-event
|
||||||
|
* @activate: signal class handler for ClutterEntry::activate
|
||||||
|
*
|
||||||
|
* Class fo entry actors.
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
struct _ClutterEntryClass
|
struct _ClutterEntryClass
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterActorClass parent_class;
|
ClutterActorClass parent_class;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
/* vfuncs, not signals */
|
/* vfuncs, not signals */
|
||||||
void (* paint_cursor) (ClutterEntry *entry);
|
void (* paint_cursor) (ClutterEntry *entry);
|
||||||
|
|
||||||
|
@ -155,6 +155,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_TO_FLOAT:
|
* CLUTTER_FIXED_TO_FLOAT:
|
||||||
|
* @x: a fixed point value
|
||||||
*
|
*
|
||||||
* Convert a fixed point value to float.
|
* Convert a fixed point value to float.
|
||||||
*/
|
*/
|
||||||
@ -162,6 +163,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_TO_DOUBLE:
|
* CLUTTER_FIXED_TO_DOUBLE:
|
||||||
|
* @x: a fixed point value
|
||||||
*
|
*
|
||||||
* Convert a fixed point value to double.
|
* Convert a fixed point value to double.
|
||||||
*/
|
*/
|
||||||
@ -169,6 +171,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FLOAT_TO_FIXED:
|
* CLUTTER_FLOAT_TO_FIXED:
|
||||||
|
* @x: a floating point value
|
||||||
*
|
*
|
||||||
* Convert a float value to fixed.
|
* Convert a float value to fixed.
|
||||||
*/
|
*/
|
||||||
@ -176,6 +179,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FLOAT_TO_INT:
|
* CLUTTER_FLOAT_TO_INT:
|
||||||
|
* @x: a floating point value
|
||||||
*
|
*
|
||||||
* Convert a float value to int.
|
* Convert a float value to int.
|
||||||
*/
|
*/
|
||||||
@ -183,6 +187,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FLOAT_TO_UINT:
|
* CLUTTER_FLOAT_TO_UINT:
|
||||||
|
* @x: a floating point value
|
||||||
*
|
*
|
||||||
* Convert a float value to unsigned int.
|
* Convert a float value to unsigned int.
|
||||||
*/
|
*/
|
||||||
@ -190,6 +195,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_INT_TO_FIXED:
|
* CLUTTER_INT_TO_FIXED:
|
||||||
|
* @x: an integer value
|
||||||
*
|
*
|
||||||
* Convert an integer value to fixed point.
|
* Convert an integer value to fixed point.
|
||||||
*/
|
*/
|
||||||
@ -197,6 +203,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_INT:
|
* CLUTTER_FIXED_INT:
|
||||||
|
* @x: a fixed point value
|
||||||
*
|
*
|
||||||
* Convert a fixed point value to integer (removing decimal part).
|
* Convert a fixed point value to integer (removing decimal part).
|
||||||
*/
|
*/
|
||||||
@ -204,6 +211,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_FRACTION:
|
* CLUTTER_FIXED_FRACTION:
|
||||||
|
* @x: a fixed point value
|
||||||
*
|
*
|
||||||
* FIXME
|
* FIXME
|
||||||
*/
|
*/
|
||||||
@ -211,6 +219,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_FLOOR:
|
* CLUTTER_FIXED_FLOOR:
|
||||||
|
* @x: a fixed point value
|
||||||
*
|
*
|
||||||
* Round down a fixed point value to an integer.
|
* Round down a fixed point value to an integer.
|
||||||
*/
|
*/
|
||||||
@ -218,6 +227,7 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
: ~((~(x)) >> CFX_Q))
|
: ~((~(x)) >> CFX_Q))
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_CEIL:
|
* CLUTTER_FIXED_CEIL:
|
||||||
|
* @x: a fixed point value
|
||||||
*
|
*
|
||||||
* Round up a fixed point value to an integer.
|
* Round up a fixed point value to an integer.
|
||||||
*/
|
*/
|
||||||
@ -225,15 +235,19 @@ typedef gint32 ClutterAngle; /* angle such that 1024 == 2*PI */
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_MUL:
|
* CLUTTER_FIXED_MUL:
|
||||||
|
* @x: a fixed point value
|
||||||
|
* @y: a fixed point value
|
||||||
*
|
*
|
||||||
* Multiply two fixed point values
|
* Multiply two fixed point values
|
||||||
*/
|
*/
|
||||||
#define CLUTTER_FIXED_MUL(x,y) ((x) >> 8) * ((y) >> 8)
|
#define CLUTTER_FIXED_MUL(x,y) ((x) >> 8) * ((y) >> 8)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_FIXED_MUL:
|
* CLUTTER_FIXED_DIV:
|
||||||
|
* @x: a fixed point value
|
||||||
|
* @y: a fixed point value
|
||||||
*
|
*
|
||||||
* Devide two fixed point values
|
* Divide two fixed point values
|
||||||
*/
|
*/
|
||||||
#define CLUTTER_FIXED_DIV(x,y) ((((x) << 8)/(y)) << 8)
|
#define CLUTTER_FIXED_DIV(x,y) ((((x) << 8)/(y)) << 8)
|
||||||
|
|
||||||
|
@ -63,10 +63,24 @@ typedef enum {
|
|||||||
typedef struct _ClutterLayout ClutterLayout; /* dummy */
|
typedef struct _ClutterLayout ClutterLayout; /* dummy */
|
||||||
typedef struct _ClutterLayoutIface ClutterLayoutIface;
|
typedef struct _ClutterLayoutIface ClutterLayoutIface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterLayoutIface:
|
||||||
|
* @get_layout_flags: Retrieve the layout mode used by the actor
|
||||||
|
* @width_for_height: Compute width for a given height
|
||||||
|
* @height_for_width: Compute height for a given width
|
||||||
|
* @natural_request: Natural size of an actor
|
||||||
|
* @tune_request: Iterative size allocation
|
||||||
|
*
|
||||||
|
* Interface for extended layout support in actors.
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
struct _ClutterLayoutIface
|
struct _ClutterLayoutIface
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
GTypeInterface g_iface;
|
GTypeInterface g_iface;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
/* Retrieve the layout mode used by the actor */
|
/* Retrieve the layout mode used by the actor */
|
||||||
ClutterLayoutFlags (* get_layout_flags) (ClutterLayout *layout);
|
ClutterLayoutFlags (* get_layout_flags) (ClutterLayout *layout);
|
||||||
|
|
||||||
|
@ -33,9 +33,21 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
#define CLUTTER_INIT_ERROR (clutter_init_error_quark ())
|
#define CLUTTER_INIT_ERROR (clutter_init_error_quark ())
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterInitError:
|
||||||
|
* @CLUTTER_INIT_SUCCESS: Initialisation successful
|
||||||
|
* @CLUTTER_INIT_ERROR_UNKNOWN: Unknown error
|
||||||
|
* @CLUTTER_INIT_ERROR_THREADS: Thread initialisation failed
|
||||||
|
* @CLUTTER_INIT_ERROR_BACKEND: Backend initialisation failed
|
||||||
|
* @CLUTTER_INIT_ERROR_INTERNAL: Internal error
|
||||||
|
*
|
||||||
|
* Error conditions returned by clutter_init() and clutter_init_with_args().
|
||||||
|
*
|
||||||
|
* Since: 0.2
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CLUTTER_INIT_SUCCESS = 1,
|
CLUTTER_INIT_SUCCESS = 1,
|
||||||
CLUTTER_INIT_ERROR_UNKOWN = 0,
|
CLUTTER_INIT_ERROR_UNKNOWN = 0,
|
||||||
CLUTTER_INIT_ERROR_THREADS = -1,
|
CLUTTER_INIT_ERROR_THREADS = -1,
|
||||||
CLUTTER_INIT_ERROR_BACKEND = -2,
|
CLUTTER_INIT_ERROR_BACKEND = -2,
|
||||||
CLUTTER_INIT_ERROR_INTERNAL = -3
|
CLUTTER_INIT_ERROR_INTERNAL = -3
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
#define CLUTTER_TYPE_PERSPECTIVE (clutter_perspective_get_type ())
|
||||||
#define CLUTTER_TYPE_STAGE (clutter_stage_get_type())
|
#define CLUTTER_TYPE_STAGE (clutter_stage_get_type())
|
||||||
|
|
||||||
#define CLUTTER_STAGE(obj) \
|
#define CLUTTER_STAGE(obj) \
|
||||||
@ -61,22 +62,25 @@ G_BEGIN_DECLS
|
|||||||
#define CLUTTER_STAGE_HEIGHT() \
|
#define CLUTTER_STAGE_HEIGHT() \
|
||||||
clutter_actor_get_height (clutter_stage_get_default ())
|
clutter_actor_get_height (clutter_stage_get_default ())
|
||||||
|
|
||||||
|
typedef struct _ClutterPerspective ClutterPerspective;
|
||||||
typedef struct _ClutterStage ClutterStage;
|
typedef struct _ClutterStage ClutterStage;
|
||||||
typedef struct _ClutterStageClass ClutterStageClass;
|
typedef struct _ClutterStageClass ClutterStageClass;
|
||||||
typedef struct _ClutterStagePrivate ClutterStagePrivate;
|
typedef struct _ClutterStagePrivate ClutterStagePrivate;
|
||||||
|
|
||||||
struct _ClutterStage
|
struct _ClutterStage
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterGroup parent_instance;
|
ClutterGroup parent_instance;
|
||||||
|
|
||||||
/*< private >*/
|
|
||||||
ClutterStagePrivate *priv;
|
ClutterStagePrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _ClutterStageClass
|
struct _ClutterStageClass
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterGroupClass parent_class;
|
ClutterGroupClass parent_class;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
/* vfuncs, not signals */
|
/* vfuncs, not signals */
|
||||||
void (* set_fullscreen) (ClutterStage *stage,
|
void (* set_fullscreen) (ClutterStage *stage,
|
||||||
gboolean fullscreen);
|
gboolean fullscreen);
|
||||||
@ -119,10 +123,19 @@ struct _ClutterStageClass
|
|||||||
gpointer _padding_dummy[32];
|
gpointer _padding_dummy[32];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define CLUTTER_TYPE_PERSPECTIVE (clutter_perspective_get_type ())
|
|
||||||
|
|
||||||
typedef struct _ClutterPerspective ClutterPerspective;
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterPerspective:
|
||||||
|
* @fovy: FIXME
|
||||||
|
* @aspect: FIXME
|
||||||
|
* @z_near: FIXME
|
||||||
|
* @z_far: FIXME
|
||||||
|
*
|
||||||
|
* Stage perspective definition
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
struct _ClutterPerspective
|
struct _ClutterPerspective
|
||||||
{
|
{
|
||||||
ClutterFixed fovy;
|
ClutterFixed fovy;
|
||||||
@ -134,6 +147,7 @@ struct _ClutterPerspective
|
|||||||
GType clutter_perspective_get_type (void) G_GNUC_CONST;
|
GType clutter_perspective_get_type (void) G_GNUC_CONST;
|
||||||
ClutterPerspective *clutter_perspective_copy (const ClutterPerspective *perspective);
|
ClutterPerspective *clutter_perspective_copy (const ClutterPerspective *perspective);
|
||||||
void clutter_perspective_free (ClutterPerspective *perspective);
|
void clutter_perspective_free (ClutterPerspective *perspective);
|
||||||
|
|
||||||
GType clutter_stage_get_type (void) G_GNUC_CONST;
|
GType clutter_stage_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
ClutterActor *clutter_stage_get_default (void);
|
ClutterActor *clutter_stage_get_default (void);
|
||||||
|
@ -38,6 +38,16 @@ G_BEGIN_DECLS
|
|||||||
#define CLUTTER_IS_TEXTURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_TEXTURE))
|
#define CLUTTER_IS_TEXTURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_TEXTURE))
|
||||||
#define CLUTTER_TEXTURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_TEXTURE, ClutterTextureClass))
|
#define CLUTTER_TEXTURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_TEXTURE, ClutterTextureClass))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterTextureError:
|
||||||
|
* @CLUTTER_TEXTURE_ERROR_OUT_OF_MEMORY: OOM condition
|
||||||
|
* @CLUTTER_TEXTURE_ERROR_NO_YUV: YUV operation attempted but no YUV support
|
||||||
|
* found
|
||||||
|
*
|
||||||
|
* Error enumeration for #ClutterTexture
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CLUTTER_TEXTURE_ERROR_OUT_OF_MEMORY,
|
CLUTTER_TEXTURE_ERROR_OUT_OF_MEMORY,
|
||||||
CLUTTER_TEXTURE_ERROR_NO_YUV
|
CLUTTER_TEXTURE_ERROR_NO_YUV
|
||||||
@ -52,6 +62,7 @@ typedef struct _ClutterTexturePrivate ClutterTexturePrivate;
|
|||||||
|
|
||||||
struct _ClutterTexture
|
struct _ClutterTexture
|
||||||
{
|
{
|
||||||
|
/*< private >*/
|
||||||
ClutterActor parent;
|
ClutterActor parent;
|
||||||
|
|
||||||
ClutterTexturePrivate *priv;
|
ClutterTexturePrivate *priv;
|
||||||
@ -66,6 +77,7 @@ struct _ClutterTextureClass
|
|||||||
gint height);
|
gint height);
|
||||||
void (*pixbuf_change) (ClutterTexture *texture);
|
void (*pixbuf_change) (ClutterTexture *texture);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
/* padding, for future expansion */
|
/* padding, for future expansion */
|
||||||
void (*_clutter_texture1) (void);
|
void (*_clutter_texture1) (void);
|
||||||
void (*_clutter_texture2) (void);
|
void (*_clutter_texture2) (void);
|
||||||
@ -75,6 +87,17 @@ struct _ClutterTextureClass
|
|||||||
void (*_clutter_texture6) (void);
|
void (*_clutter_texture6) (void);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterTextureFlags:
|
||||||
|
* @CLUTTER_TEXTURE_RGB_FLAG_BGR: FIXME
|
||||||
|
* @CLUTTER_TEXTURE_RGB_FLAG_PREMULT: FIXME
|
||||||
|
* @CLUTTER_TEXTURE_YUV_FLAG_YUV2: FIXME
|
||||||
|
*
|
||||||
|
* Flags for clutter_texture_set_from_rgb_data() and
|
||||||
|
* clutter_texture_set_from_rgb_data().
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
typedef enum { /*< prefix=CLUTTER_TEXTURE >*/
|
typedef enum { /*< prefix=CLUTTER_TEXTURE >*/
|
||||||
CLUTTER_TEXTURE_RGB_FLAG_BGR = 1 << 1,
|
CLUTTER_TEXTURE_RGB_FLAG_BGR = 1 << 1,
|
||||||
CLUTTER_TEXTURE_RGB_FLAG_PREMULT = 1 << 2, /* FIXME: not handled */
|
CLUTTER_TEXTURE_RGB_FLAG_PREMULT = 1 << 2, /* FIXME: not handled */
|
||||||
|
@ -51,6 +51,14 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClutterUnit:
|
||||||
|
*
|
||||||
|
* Device independent unit used by Clutter. The value held can be transformed
|
||||||
|
* into other units, likes pixels.
|
||||||
|
*
|
||||||
|
* Since: 0.4
|
||||||
|
*/
|
||||||
typedef gint32 ClutterUnit;
|
typedef gint32 ClutterUnit;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -414,7 +414,6 @@ CLUTTER_STAGE_HEIGHT
|
|||||||
ClutterPerspective
|
ClutterPerspective
|
||||||
clutter_perspective_copy
|
clutter_perspective_copy
|
||||||
clutter_perspective_free
|
clutter_perspective_free
|
||||||
ClutterStageClass
|
|
||||||
clutter_stage_get_default
|
clutter_stage_get_default
|
||||||
clutter_stage_set_color
|
clutter_stage_set_color
|
||||||
clutter_stage_get_color
|
clutter_stage_get_color
|
||||||
@ -435,6 +434,7 @@ clutter_stage_set_user_resizable
|
|||||||
clutter_stage_get_user_resizable
|
clutter_stage_get_user_resizable
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
ClutterStage
|
ClutterStage
|
||||||
|
ClutterStageClass
|
||||||
CLUTTER_STAGE
|
CLUTTER_STAGE
|
||||||
CLUTTER_IS_STAGE
|
CLUTTER_IS_STAGE
|
||||||
CLUTTER_TYPE_STAGE
|
CLUTTER_TYPE_STAGE
|
||||||
@ -451,7 +451,6 @@ clutter_perspective_get_type
|
|||||||
<SECTION>
|
<SECTION>
|
||||||
<FILE>clutter-timeline</FILE>
|
<FILE>clutter-timeline</FILE>
|
||||||
<TITLE>ClutterTimeline</TITLE>
|
<TITLE>ClutterTimeline</TITLE>
|
||||||
ClutterTimelineClass
|
|
||||||
clutter_timeline_new
|
clutter_timeline_new
|
||||||
clutter_timeline_clone
|
clutter_timeline_clone
|
||||||
clutter_timeline_set_speed
|
clutter_timeline_set_speed
|
||||||
@ -472,6 +471,7 @@ clutter_timeline_set_delay
|
|||||||
clutter_timeline_get_delay
|
clutter_timeline_get_delay
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
ClutterTimeline
|
ClutterTimeline
|
||||||
|
ClutterTimelineClass
|
||||||
CLUTTER_TIMELINE
|
CLUTTER_TIMELINE
|
||||||
CLUTTER_IS_TIMELINE
|
CLUTTER_IS_TIMELINE
|
||||||
CLUTTER_TYPE_TIMELINE
|
CLUTTER_TYPE_TIMELINE
|
||||||
@ -824,7 +824,6 @@ clutter_event_get_type
|
|||||||
<SECTION>
|
<SECTION>
|
||||||
<FILE>clutter-main</FILE>
|
<FILE>clutter-main</FILE>
|
||||||
<TITLE>General</TITLE>
|
<TITLE>General</TITLE>
|
||||||
CLUTTER_INIT_ERROR
|
|
||||||
ClutterInitError
|
ClutterInitError
|
||||||
clutter_init
|
clutter_init
|
||||||
clutter_init_with_args
|
clutter_init_with_args
|
||||||
@ -835,6 +834,8 @@ clutter_main
|
|||||||
clutter_main_quit
|
clutter_main_quit
|
||||||
clutter_main_level
|
clutter_main_level
|
||||||
clutter_get_timestamp
|
clutter_get_timestamp
|
||||||
|
<SUBSECTION Standard>
|
||||||
|
CLUTTER_INIT_ERROR
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
clutter_init_error_quark
|
clutter_init_error_quark
|
||||||
clutter_base_init
|
clutter_base_init
|
||||||
|
Loading…
Reference in New Issue
Block a user