Added docs and C bindings for AccessibleStateSet and AccessibleRelationSet.
[platform/core/uifw/at-spi2-atk.git] / cspi / spi_hyperlink.c
index 5538c34..4d039b6 100644 (file)
+/**
+ * AccessibleHyperlink_ref:
+ * @obj: a pointer to the #AccessibleHyperlink object on which to operate.
+ *
+ * Increment the reference count for an #AccessibleHyperlink object.
+ *
+ * Returns: (no return code implemented yet).
+ *
+ **/
 int
-SpiAccessibleHyperlink_ref (SpiAccessibleHyperlink *obj)
+AccessibleHyperlink_ref (AccessibleHyperlink *obj)
 {
-  Accessibility_SpiHyperlink_ref (*obj, &ev);
+  Accessibility_Hyperlink_ref (*obj, &ev);
   return 0;
 }
 
 
 
+/**
+ * AccessibleHyperlink_unref:
+ * @obj: a pointer to the #AccessibleHyperlink object on which to operate.
+ *
+ * Decrement the reference count for an #AccessibleHyperlink object.
+ *
+ * Returns: (no return code implemented yet).
+ *
+ **/
 int
-SpiAccessibleHyperlink_unref (SpiAccessibleHyperlink *obj)
+AccessibleHyperlink_unref (AccessibleHyperlink *obj)
 {
-  Accessibility_SpiHyperlink_unref (*obj, &ev);
+  Accessibility_Hyperlink_unref (*obj, &ev);
   return 0;
 }
 
-
-
+/**
+ * AccessibleHyperlink_getNAnchors:
+ * @obj: a pointer to the #AccessibleHyperlink object on which to operate.
+ *
+ * Get the total number of anchors which an #AccessibleHyperlink implementor has.
+ *       Though typical hyperlinks have only one anchor, client-side image maps and
+ *       other hypertext objects may potentially activate or refer to multiple
+ *       URIs.  For each anchor there is a corresponding URI and object.
+ * @see AccessibleHyperlink_getURI() and AccessibleHyperlink_getObject().
+ *
+ * Returns: a #long indicating the number of anchors in this hyperlink.
+ *
+ **/
 long
-SpiAccessibleHyperlink_getNAnchors (SpiAccessibleHyperlink *obj)
+AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj)
 {
   return (long)
-    Accessibility_SpiHyperlink__get_nAnchors (*obj, &ev);
+    Accessibility_Hyperlink__get_nAnchors (*obj, &ev);
 }
 
 
-
+/**
+ * AccessibleHyperlink_getURI:
+ * @obj: a pointer to the #AccessibleHyperlink implementor on which to operate.
+ * @i: a (zero-index) long integer indicating which hyperlink anchor to query.
+ *
+ * Get the URI associated with a particular hyperlink anchor.  
+ *
+ * Returns: a UTF-8 string giving the URI of the @ith hyperlink anchor.
+ *
+ **/
 char *
-SpiAccessibleHyperlink_getURI (SpiAccessibleHyperlink *obj,
-                            long i)
+AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
+                            long int i)
 {
   return (char *)
-    Accessibility_SpiHyperlink_getURI (*obj,
+    Accessibility_Hyperlink_getURI (*obj,
                                    (CORBA_long) i, &ev);
 }
 
-
-
-SpiAccessible
-SpiAccessibleHyperlink_getObject (SpiAccessibleHyperlink *obj,
-                               long i)
+/**
+ * AccessibleHyperlink_getObject:
+ * @obj: a pointer to the #AccessibleHyperlink implementor on which to operate.
+ * @i: a (zero-index) long integer indicating which hyperlink anchor to query.
+ *
+ * Get the object associated with a particular hyperlink anchor, as an #Accessible. 
+ *
+ * Returns: an #Accessible that represents the object associated with the @ith anchor
+ *        of the specified #AccessibleHyperlink.
+ *
+ **/
+Accessible*
+AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
+                               long int i)
 {
-  return (SpiAccessible)
-    Accessibility_SpiHyperlink_getObject (*obj,
-                                      (CORBA_long) i, &ev);
+  return Obj_Add (
+    Accessibility_Hyperlink_getObject (*obj,
+                                      (CORBA_long) i, &ev));
 }
 
-
-
+/**
+ * AccessibleHyperlink_getIndexRange:
+ * @obj: a pointer to the #AccessibleHyperlink implementor on which to operate.
+ * @startIndex: a pointer to a long integer into which the starting
+ *       offset of the text associated with this #AccessibleHyperlink is returned.
+ * @endIndex: a pointer to a long integer into which the offset of the first character
+ *       after the text associated with this #AccessibleHyperlink is returned.
+ *
+ *
+ * Get the starting and ending character offsets of the text range associated with
+ *       a #AccessibleHyperlink, in its originating #AccessibleHypertext.
+ *
+ **/
 void
-SpiAccessibleHyperlink_getIndexRange (SpiAccessibleHyperlink *obj,
-                                   long *startIndex,
-                                   long *endIndex)
+AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
+                                   long int *startIndex,
+                                   long int *endIndex)
 {
   *startIndex = (long)
-    Accessibility_SpiHyperlink__get_startIndex (*obj, &ev);
+    Accessibility_Hyperlink__get_startIndex (*obj, &ev);
   *endIndex = (long)
-    Accessibility_SpiHyperlink__get_endIndex (*obj, &ev);
+    Accessibility_Hyperlink__get_endIndex (*obj, &ev);
 }
 
 
 
+/**
+ * AccessibleHyperlink_isValid:
+ * @obj: a pointer to the #AccessibleHyperlink on which to operate.
+ *
+ * Tell whether an #AccessibleHyperlink object is still valid with respect to its
+ *          originating hypertext object.
+ *
+ * Returns: #TRUE of the specified #AccessibleHyperlink is still valid with respect
+ *          to its originating #AccessibleHypertext object, #FALSE otherwise.
+ *
+ **/
 boolean
-SpiAccessibleHyperlink_isValid (SpiAccessibleHyperlink *obj)
+AccessibleHyperlink_isValid (AccessibleHyperlink *obj)
 {
   return (boolean)
-    Accessibility_SpiHyperlink_isValid (*obj, &ev);
+    Accessibility_Hyperlink_isValid (*obj, &ev);
 }