Annotate functionality added in 1.10

This commit is contained in:
Emmanuele Bassi 2012-03-16 17:30:26 +00:00
parent 1df14c1bac
commit e5e10b6a04
7 changed files with 46 additions and 0 deletions

View File

@ -85,9 +85,12 @@ struct _ClutterCanvasClass
gpointer _padding[16];
};
CLUTTER_AVAILABLE_IN_1_10
GType clutter_canvas_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterContent * clutter_canvas_new (void);
CLUTTER_AVAILABLE_IN_1_10
void clutter_canvas_set_size (ClutterCanvas *canvas,
int width,
int height);

View File

@ -88,11 +88,14 @@ struct _ClutterContentIface
void (* invalidate) (ClutterContent *content);
};
CLUTTER_AVAILABLE_IN_1_10
GType clutter_content_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
gboolean clutter_content_get_preferred_size (ClutterContent *content,
gfloat *width,
gfloat *height);
CLUTTER_AVAILABLE_IN_1_10
void clutter_content_invalidate (ClutterContent *content);
G_END_DECLS

View File

@ -100,10 +100,14 @@ struct _ClutterImageClass
gpointer _padding[16];
};
CLUTTER_AVAILABLE_IN_1_10
GQuark clutter_image_error_quark (void);
CLUTTER_AVAILABLE_IN_1_10
GType clutter_image_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterContent * clutter_image_new (void);
CLUTTER_AVAILABLE_IN_1_10
gboolean clutter_image_set_data (ClutterImage *image,
const guint8 *data,
CoglPixelFormat pixel_format,
@ -111,6 +115,7 @@ gboolean clutter_image_set_data (ClutterImage
guint height,
guint row_stride,
GError **error);
CLUTTER_AVAILABLE_IN_1_10
gboolean clutter_image_set_area (ClutterImage *image,
const guint8 *data,
CoglPixelFormat pixel_format,
@ -119,6 +124,7 @@ gboolean clutter_image_set_area (ClutterImage
GError **error);
#if defined(COGL_ENABLE_EXPERIMENTAL_API) && defined(CLUTTER_ENABLE_EXPERIMENTAL_API)
CLUTTER_AVAILABLE_IN_1_10
CoglTexture * clutter_image_get_texture (ClutterImage *image);
#endif

View File

@ -41,18 +41,25 @@ G_BEGIN_DECLS
typedef struct _ClutterPaintNodePrivate ClutterPaintNodePrivate;
typedef struct _ClutterPaintNodeClass ClutterPaintNodeClass;
CLUTTER_AVAILABLE_IN_1_10
GType clutter_paint_node_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterPaintNode * clutter_paint_node_ref (ClutterPaintNode *node);
CLUTTER_AVAILABLE_IN_1_10
void clutter_paint_node_unref (ClutterPaintNode *node);
CLUTTER_AVAILABLE_IN_1_10
void clutter_paint_node_set_name (ClutterPaintNode *node,
const char *name);
CLUTTER_AVAILABLE_IN_1_10
void clutter_paint_node_add_child (ClutterPaintNode *node,
ClutterPaintNode *child);
CLUTTER_AVAILABLE_IN_1_10
void clutter_paint_node_add_rectangle (ClutterPaintNode *node,
const ClutterActorBox *rect);
CLUTTER_AVAILABLE_IN_1_10
void clutter_paint_node_add_texture_rectangle (ClutterPaintNode *node,
const ClutterActorBox *rect,
float x_1,
@ -60,19 +67,25 @@ void clutter_paint_node_add_texture_rectangle (Clutter
float x_2,
float y_2);
#if defined(COGL_ENABLE_EXPERIMENTAL_2_0_API) && defined(CLUTTER_ENABLE_EXPERIMENTAL_API)
CLUTTER_AVAILABLE_IN_1_10
void clutter_paint_node_add_path (ClutterPaintNode *node,
CoglPath *path);
CLUTTER_AVAILABLE_IN_1_10
void clutter_paint_node_add_primitive (ClutterPaintNode *node,
CoglPrimitive *primitive);
#endif /* COGL_ENABLE_EXPERIMENTAL_2_0_API && CLUTTER_ENABLE_EXPERIMENTAL_API */
#define CLUTTER_VALUE_HOLDS_PAINT_NODE(value) (G_VALUE_HOLDS (value, CLUTTER_TYPE_PAINT_NODE))
CLUTTER_AVAILABLE_IN_1_10
void clutter_value_set_paint_node (GValue *value,
gpointer node);
CLUTTER_AVAILABLE_IN_1_10
void clutter_value_take_paint_node (GValue *value,
gpointer node);
CLUTTER_AVAILABLE_IN_1_10
gpointer clutter_value_get_paint_node (const GValue *value);
CLUTTER_AVAILABLE_IN_1_10
gpointer clutter_value_dup_paint_node (const GValue *value);
G_END_DECLS

View File

@ -49,8 +49,10 @@ G_BEGIN_DECLS
typedef struct _ClutterColorNode ClutterColorNode;
typedef struct _ClutterColorNodeClass ClutterColorNodeClass;
CLUTTER_AVAILABLE_IN_1_10
GType clutter_color_node_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterPaintNode * clutter_color_node_new (const ClutterColor *color);
#define CLUTTER_TYPE_TEXTURE_NODE (clutter_texture_node_get_type ())
@ -68,8 +70,10 @@ ClutterPaintNode * clutter_color_node_new (const ClutterColor *
typedef struct _ClutterTextureNode ClutterTextureNode;
typedef struct _ClutterTextureNodeClass ClutterTextureNodeClass;
CLUTTER_AVAILABLE_IN_1_10
GType clutter_texture_node_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterPaintNode * clutter_texture_node_new (CoglTexture *texture,
const ClutterColor *color,
ClutterScalingFilter min_filter,
@ -90,8 +94,10 @@ ClutterPaintNode * clutter_texture_node_new (CoglTexture *
typedef struct _ClutterClipNode ClutterClipNode;
typedef struct _ClutterClipNodeClass ClutterClipNodeClass;
CLUTTER_AVAILABLE_IN_1_10
GType clutter_clip_node_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterPaintNode * clutter_clip_node_new (void);
#define CLUTTER_TYPE_PIPELINE_NODE (clutter_pipeline_node_get_type ())
@ -109,9 +115,11 @@ ClutterPaintNode * clutter_clip_node_new (void);
typedef struct _ClutterPipelineNode ClutterPipelineNode;
typedef struct _ClutterPipelineNodeClass ClutterPipelineNodeClass;
CLUTTER_AVAILABLE_IN_1_10
GType clutter_pipeline_node_get_type (void) G_GNUC_CONST;
#if defined(COGL_ENABLE_EXPERIMENTAL_2_0_API) && defined(CLUTTER_ENABLE_EXPERIMENTAL_API)
CLUTTER_AVAILABLE_IN_1_10
ClutterPaintNode * clutter_pipeline_node_new (CoglPipeline *pipeline);
#endif /* COGL_ENABLE_EXPERIMENTAL_2_0_API && CLUTTER_ENABLE_EXPERIMENTAL_API */
@ -130,8 +138,10 @@ ClutterPaintNode * clutter_pipeline_node_new (CoglPipeline *
typedef struct _ClutterTextNode ClutterTextNode;
typedef struct _ClutterTextNodeClass ClutterTextNodeClass;
CLUTTER_AVAILABLE_IN_1_10
GType clutter_text_node_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterPaintNode * clutter_text_node_new (PangoLayout *layout,
const ClutterColor *color);

View File

@ -75,12 +75,16 @@ struct _ClutterPropertyTransitionClass
gpointer _padding[8];
};
CLUTTER_AVAILABLE_IN_1_10
GType clutter_property_transition_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
ClutterTransition * clutter_property_transition_new (ClutterAnimatable *animatable,
const char *property_name);
CLUTTER_AVAILABLE_IN_1_10
void clutter_property_transition_set_property_name (ClutterPropertyTransition *transition,
const char *property_name);
CLUTTER_AVAILABLE_IN_1_10
const char * clutter_property_transition_get_property_name (ClutterPropertyTransition *transition);
G_END_DECLS

View File

@ -93,16 +93,23 @@ struct _ClutterTransitionClass
gpointer _padding[8];
};
CLUTTER_AVAILABLE_IN_1_10
GType clutter_transition_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
void clutter_transition_set_interval (ClutterTransition *transition,
ClutterInterval *interval);
CLUTTER_AVAILABLE_IN_1_10
ClutterInterval * clutter_transition_get_interval (ClutterTransition *transition);
CLUTTER_AVAILABLE_IN_1_10
void clutter_transition_set_animatable (ClutterTransition *transition,
ClutterAnimatable *animatable);
CLUTTER_AVAILABLE_IN_1_10
ClutterAnimatable * clutter_transition_get_animatable (ClutterTransition *transition);
CLUTTER_AVAILABLE_IN_1_10
void clutter_transition_set_remove_on_complete (ClutterTransition *transition,
gboolean remove_complete);
CLUTTER_AVAILABLE_IN_1_10
gboolean clutter_transition_get_remove_on_complete (ClutterTransition *transition);
G_END_DECLS