[PATCH 07/13] core: Added gtk-doc tags to grl-media-image
- From: Simón Pena <spenap gmail com>
- To: grilo-list gnome org
- Subject: [PATCH 07/13] core: Added gtk-doc tags to grl-media-image
- Date: Wed, 28 Jul 2010 23:06:23 +0200
---
src/data/grl-media-image.c | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/src/data/grl-media-image.c b/src/data/grl-media-image.c
index ff3fffb..9881bde 100644
--- a/src/data/grl-media-image.c
+++ b/src/data/grl-media-image.c
@@ -79,6 +79,14 @@ grl_media_image_new (void)
NULL));
}
+/**
+ * grl_media_image_set_size:
+ * @image: the image instance
+ * @width: the image's width
+ * @height: the image's height
+ *
+ * Set the size of the image
+ */
void
grl_media_image_set_size (GrlMediaImage *image,
gint width,
@@ -88,6 +96,13 @@ grl_media_image_set_size (GrlMediaImage *image,
grl_media_image_set_height (image, height);
}
+/**
+ * grl_media_image_set_width:
+ * @data: the image instance
+ * @width: the image's width
+ *
+ * Set the width of the image
+ */
void
grl_media_image_set_width (GrlMediaImage *data, gint width)
{
@@ -96,6 +111,13 @@ grl_media_image_set_width (GrlMediaImage *data, gint width)
width);
}
+/**
+ * grl_media_image_set_height:
+ * @data: the image instance
+ * @height: the image's height
+ *
+ * Set the height of the image
+ */
void
grl_media_image_set_height (GrlMediaImage *data, gint height)
{
@@ -104,12 +126,24 @@ grl_media_image_set_height (GrlMediaImage *data, gint height)
height);
}
+/**
+ * grl_media_image_get_width:
+ * @data: The image instance
+ *
+ * Return: the width of the image
+ */
gint
grl_media_image_get_width (GrlMediaImage *data)
{
return grl_data_get_int (GRL_DATA (data), GRL_METADATA_KEY_WIDTH);
}
+/**
+ * grl_media_image_get_height:
+ * @data: the image instance
+ *
+ * Return: the height of the image
+ */
gint
grl_media_image_get_height (GrlMediaImage *data)
{
--
1.7.0.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]