summaryrefslogtreecommitdiff
path: root/atk/atkimage.h
diff options
context:
space:
mode:
authorBill Haneman <billh@src.gnome.org>2001-04-26 14:23:41 +0000
committerBill Haneman <billh@src.gnome.org>2001-04-26 14:23:41 +0000
commitdba66b4bec94a908cd35a5537209db255fa5fa33 (patch)
tree3c6361db3558e2e2c70e9c802193974f45d24bf0 /atk/atkimage.h
downloadatk-dba66b4bec94a908cd35a5537209db255fa5fa33.tar.gz
Initial revision
Diffstat (limited to 'atk/atkimage.h')
-rwxr-xr-xatk/atkimage.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/atk/atkimage.h b/atk/atkimage.h
new file mode 100755
index 0000000..51ec881
--- /dev/null
+++ b/atk/atkimage.h
@@ -0,0 +1,100 @@
+/* ATK - Accessibility Toolkit
+ * Copyright 2001 Sun Microsystems Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __ATK_IMAGE_H__
+#define __ATK_IMAGE_H__
+
+#include <atk/atkobject.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/*
+ * The AtkImage interface should be supported by any object that has an
+ * associated image. This interface provides the standard mechanism for
+ * an assistive technology to get descriptive information about images.
+ */
+
+#define ATK_TYPE_IMAGE (atk_image_get_type ())
+#define ATK_IS_IMAGE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_IMAGE)
+#define ATK_IMAGE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_IMAGE, AtkImage)
+#define ATK_IMAGE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_IMAGE, AtkImageIface))
+
+#ifndef _TYPEDEF_ATK_IMAGE_
+#define _TYPEDEF_ATK_IMAGE_
+typedef struct _AtkImage AtkImage;
+#endif
+
+typedef enum
+{
+ ATK_IMAGE_EMPTY,
+ ATK_IMAGE_PIXMAP,
+ ATK_IMAGE_IMAGE,
+ ATK_IMAGE_PIXBUF,
+ ATK_IMAGE_STOCK,
+ ATK_IMAGE_ICON_SET
+} AtkImageType;
+
+struct _AtkImageIface
+{
+ GTypeInterface parent;
+
+ /*
+ * Gets the type of representation being used to store image data
+ */
+ AtkImageType (*get_storage_type) (AtkImage *image);
+ /*
+ * Gets the description of the image
+ */
+ G_CONST_RETURN gchar* ( *get_image_description) (AtkImage *image);
+ /*
+ * Gets the height of the image
+ */
+ gint ( *get_image_height) (AtkImage *image);
+ /*
+ * Gets the width of the image
+ */
+ gint ( *get_image_width) (AtkImage *image);
+ /*
+ * Sets the description of the image
+ */
+ void ( *set_image_description) (AtkImage *image,
+ const gchar *description);
+
+};
+GType atk_image_get_type (void);
+
+AtkImageType atk_image_get_storage_type (AtkImage *image);
+G_CONST_RETURN gchar* atk_image_get_image_description (AtkImage *image);
+
+gint atk_image_get_image_height (AtkImage *image);
+
+gint atk_image_get_image_width (AtkImage *image);
+
+void atk_image_set_image_description (AtkImage *image,
+ const gchar *description);
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
+#endif /* __ATK_IMAGE_H__ */