summaryrefslogtreecommitdiff
path: root/atk/atkimage.c
diff options
context:
space:
mode:
authorBrian Cameron <bcameron@src.gnome.org>2001-06-27 16:20:01 +0000
committerBrian Cameron <bcameron@src.gnome.org>2001-06-27 16:20:01 +0000
commit3519fe9a47c26601cad3c5151c9f5c966dd52e43 (patch)
tree12c67f015b34c4460e92d8b9fd75968193008d46 /atk/atkimage.c
parentec1b9a062a4ca5f65b1c7e705d4b261c91ad9b45 (diff)
downloadatk-3519fe9a47c26601cad3c5151c9f5c966dd52e43.tar.gz
Updated gtk-docs fixing spelling errors and making minor
changes to the API.
Diffstat (limited to 'atk/atkimage.c')
-rwxr-xr-xatk/atkimage.c78
1 files changed, 11 insertions, 67 deletions
diff --git a/atk/atkimage.c b/atk/atkimage.c
index aea64af..619303d 100755
--- a/atk/atkimage.c
+++ b/atk/atkimage.c
@@ -40,34 +40,6 @@ atk_image_get_type ()
}
/**
- * atk_image_get_storage_type:
- * @image: a #GObject instance that implements AtkImageIface
- *
- * Gets the type of representation being used to store image data
- *
- * Returns: an #AtkStorageType representing the image storage type
- **/
-AtkImageType
-atk_image_get_storage_type (AtkImage *obj)
-{
- AtkImageIface *iface;
-
- g_return_val_if_fail (obj != NULL, 0);
- g_return_val_if_fail (ATK_IS_IMAGE (obj), 0);
-
- iface = ATK_IMAGE_GET_IFACE (obj);
-
- if (iface->get_storage_type)
- {
- return (iface->get_storage_type) (obj);
- }
- else
- {
- return 0;
- }
-}
-
-/**
* atk_image_get_image_description:
* @image: a #GObject instance that implements AtkImageIface
*
@@ -96,65 +68,37 @@ atk_image_get_image_description (AtkImage *obj)
}
/**
- * atk_image_get_image_height:
+ * atk_image_get_image_size:
* @image: a #GObject instance that implements AtkImageIface
+ * @height: filled with the image height
+ * @width: filled with the image width
*
* Get the height, in pixels/screen coords, of this image.
- *
- * Returns: an integer representing the image height in pixel coords
- **/
-gint
-atk_image_get_image_height (AtkImage *obj)
-{
- AtkImageIface *iface;
-
- g_return_val_if_fail (obj != NULL, 0);
- g_return_val_if_fail (ATK_IS_IMAGE (obj), 0);
-
- iface = ATK_IMAGE_GET_IFACE (obj);
-
- if (iface->get_image_height)
- {
- return (iface->get_image_height) (obj);
- }
- else
- {
- return 0;
- }
-}
-
-/**
- * atk_image_get_image_width:
- * @image: a #GObject instance that implements AtkImageIface
- *
- * Get the width, in pixel/screen coords, of this image.
- *
- * Returns: an integer representing the image width
**/
-gint
-atk_image_get_image_width (AtkImage *obj)
+void
+atk_image_get_image_size (AtkImage *obj, int *height, int *width)
{
AtkImageIface *iface;
- g_return_val_if_fail (obj != NULL, 0);
- g_return_val_if_fail (ATK_IS_IMAGE (obj), 0);
+ g_return_if_fail (obj != NULL);
+ g_return_if_fail (ATK_IS_IMAGE (obj));
iface = ATK_IMAGE_GET_IFACE (obj);
- if (iface->get_image_width)
+ if (iface->get_image_size)
{
- return (iface->get_image_width) (obj);
+ return (iface->get_image_size) (obj, height, width);
}
else
{
- return 0;
+ return;
}
}
/**
* atk_image_set_image_description:
* @image: a #GObject instance that implements AtkImageIface
- * @description: a string desciption to set for @image
+ * @description: a string description to set for @image
*
* Sets the textual description for this image.
*