summaryrefslogtreecommitdiff
path: root/atspi/atspi-relation.h
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2010-11-28 10:08:02 -0500
committerMike Gorse <mgorse@novell.com>2010-11-28 10:08:02 -0500
commitba62b6e42a04872513574b1abd2e02d44c2a6468 (patch)
treedfbb62b14e0d60cb964c20596702832cef276ba8 /atspi/atspi-relation.h
parent6f0884d36ef773439675a36090711071c4030ffd (diff)
downloadat-spi2-core-ba62b6e42a04872513574b1abd2e02d44c2a6468.tar.gz
Added relation set and various other fixes
Diffstat (limited to 'atspi/atspi-relation.h')
-rw-r--r--atspi/atspi-relation.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/atspi/atspi-relation.h b/atspi/atspi-relation.h
new file mode 100644
index 00000000..13f7eae3
--- /dev/null
+++ b/atspi/atspi-relation.h
@@ -0,0 +1,61 @@
+/*
+ * AT-SPI - Assistive Technology Service Provider Interface
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * Copyright 2002 Ximian, Inc.
+ * 2002 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 _ATSPI_RELATION_H_
+#define _ATSPI_RELATION_H_
+
+#include "glib-object.h"
+
+#include "atspi-constants.h"
+
+#define ATSPI_TYPE_RELATION (atspi_relation_get_type ())
+#define ATSPI_IS_RELATION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_RELATION)
+#define ATSPI_RELATION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_RELATION, AtspiRelation)
+#define ATSPI_RELATION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATSPI_TYPE_RELATION, AtspiRelation))
+
+GType atspi_relation_get_type ();
+
+typedef struct _AtspiRelation AtspiRelation;
+struct _AtspiRelation
+{
+ GObject parent;
+ AtspiRelationType relation_type;
+ GArray *targets;
+};
+
+typedef struct _AtspiRelationClass AtspiRelationClass;
+struct _AtspiRelationClass
+{
+ GObjectClass parent_class;
+};
+
+AtspiRelationType atspi_relation_get_relation_type (AtspiRelation *obj);
+
+gint atspi_relation_get_n_targets (AtspiRelation *obj);
+
+AtspiAccessible * atspi_relation_get_target (AtspiRelation *obj, gint i);
+
+/* private */
+AtspiRelation * _atspi_relation_new_from_iter (DBusMessageIter *iter);
+#endif /* _ATSPI_RELATION_H_ */