Class AccessibleObject

java.lang.Object
org.eclipse.swt.accessibility.AccessibleObject

class AccessibleObject extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) Accessible
     
    (package private) static final Map<LONG, AccessibleObject>
     
    (package private) static long
     
    (package private) long
     
    (package private) AccessibleObject[]
     
    (package private) static final boolean
     
    (package private) static long
     
    (package private) int
     
    (package private) int
     
    (package private) boolean
     
    (package private) static long
     
    (package private) static long
     
    (package private) AccessibleObject
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AccessibleObject(long type, long widget, Accessible accessible, boolean isLightweight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    addRelation(int type, Accessible target)
     
    (package private) static long
    atkAction_do_action(long atkObject, long index)
    Performs the specified action on atkObject.
    (package private) static long
    atkAction_get_description(long atkObject, long index)
    Returns a description of the specified action of the atkObject.
    (package private) static long
    atkAction_get_keybinding(long atkObject, long index)
    Returns the keybinding which can be used to activate this atkObject, if one exists.
    (package private) static long
    atkAction_get_n_actions(long atkObject)
    Returns the number of accessible actions available on atkObject.
    (package private) static long
    atkAction_get_name(long atkObject, long index)
    Returns the name of the specified action of the atkObject.
    (package private) static long
    atkComponent_get_extents(long atkObject, long x, long y, long width, long height, long coord_type)
    Gets the rectangle which gives the extent of the component.
    (package private) static long
    atkComponent_ref_accessible_at_point(long atkObject, long x, long y, long coord_type)
    Gets a reference to the accessible child, if one exists, at the coordinate point specified by x and y.
    (package private) static long
    atkEditableText_copy_text(long atkObject, long start_pos, long end_pos)
    Copies text from start_pos up to (but not including) end_pos into the clipboard.
    (package private) static long
    atkEditableText_cut_text(long atkObject, long start_pos, long end_pos)
    Cuts text from start_pos up to (but not including) end_pos into the clipboard.
    (package private) static long
    atkEditableText_delete_text(long atkObject, long start_pos, long end_pos)
    Delete text start_pos up to (but not including) end_pos.
    (package private) static long
    atkEditableText_insert_text(long atkObject, long string, long string_length, long position)
    Inserts text at a given position.
    (package private) static long
    atkEditableText_paste_text(long atkObject, long position)
    Paste text from clipboard to specified position.
    (package private) static long
    atkEditableText_set_run_attributes(long atkObject, long attrib_set, long start_offset, long end_offset)
    Sets the attributes for a specified range.
    (package private) static long
    atkEditableText_set_text_contents(long atkObject, long string)
    Sets text contents of the atkObject.
    (package private) static long
    atkHypertext_get_link(long atkObject, long link_index)
    Gets the link in this hypertext document at index link_index.
    (package private) static long
    atkHypertext_get_link_index(long atkObject, long char_index)
    Gets the index into the array of hyperlinks that is associated with the character specified by char_index.
    (package private) static long
    atkHypertext_get_n_links(long atkObject)
    Gets the number of links in this hypertext document.
    (package private) static long
    atkObject_get_attributes(long atkObject)
    Get a list of properties applied to this object as a whole, as an AtkAttributeSet consisting of name-value pairs.
    (package private) static long
    atkObject_get_description(long atkObject)
    Gets the accessible description of the widget associated with atkObject.
    (package private) static long
    Gets the 0-based index of the widget (associated with atkObject) in its parent.
    (package private) static long
    atkObject_get_n_children(long atkObject)
    Gets the number of accessible children of the widget associated with atkObject.
    (package private) static long
    atkObject_get_name(long atkObject)
    Gets the accessible name of the widget associated with atkObject.
    (package private) static long
    atkObject_get_parent(long atkObject)
    Gets the accessible parent of the widget associated with atkObject.
    (package private) static long
    atkObject_get_role(long atkObject)
    Gets the role of the accessible associated with atkObject.
    (package private) static long
    atkObject_ref_child(long atkObject, long index)
    Gets a reference to the accessible child whose parent is atkObject.
    (package private) static long
    atkObject_ref_state_set(long atkObject)
    Gets a reference to the state set of the accessible associated with atkObject.
    (package private) static long
    atkSelection_is_child_selected(long atkObject, long index)
    Determines if the current child of this atkObject is selected.
    (package private) static long
    atkSelection_ref_selection(long atkObject, long index)
    Gets a reference to the atkObject representing the specified selected child of the object.
    (package private) static long
    atkTable_add_column_selection(long atkObject, long column)
    Adds the specified column to the selection.
    (package private) static long
    atkTable_add_row_selection(long atkObject, long row)
    Adds the specified row to the selection.
    (package private) static long
    atkTable_get_caption(long atkObject)
    Gets the caption for the table.
    (package private) static long
    atkTable_get_column_at_index(long atkObject, long index)
    Gets a gint representing the column at the specified index.
    (package private) static long
    atkTable_get_column_description(long atkObject, long column)
    Gets the description text of the specified column.
    (package private) static long
    atkTable_get_column_extent_at(long atkObject, long row, long column)
    Gets the number of columns occupied at the specified row and column.
    (package private) static long
    atkTable_get_column_header(long atkObject, long column)
    Gets the column header of a specified column.
    (package private) static long
    atkTable_get_index_at(long atkObject, long row, long column)
    Get a reference to the table cell at row, column.
    (package private) static long
    atkTable_get_n_columns(long atkObject)
    Gets the number of columns in the table.
    (package private) static long
    atkTable_get_n_rows(long atkObject)
    Gets the number of rows in the table.
    (package private) static long
    atkTable_get_row_at_index(long atkObject, long index)
    Gets a gint representing the row at the specified index.
    (package private) static long
    atkTable_get_row_description(long atkObject, long row)
    Gets the description text of the specified row.
    (package private) static long
    atkTable_get_row_extent_at(long atkObject, long row, long column)
    Gets the number of rows occupied at the specified row and column.
    (package private) static long
    atkTable_get_row_header(long atkObject, long row)
    Gets the column header of a specified row.
    (package private) static long
    atkTable_get_selected_columns(long atkObject, long selected)
    Gets the selected columns of the table.
    (package private) static long
    atkTable_get_selected_rows(long atkObject, long selected)
    Gets the selected rows of the table.
    (package private) static long
    atkTable_get_summary(long atkObject)
    Gets the summary for the table.
    (package private) static long
    atkTable_is_column_selected(long atkObject, long column)
    Determines if the specified column is selected.
    (package private) static long
    atkTable_is_row_selected(long atkObject, long row)
    Determines if the specified row is selected.
    (package private) static long
    atkTable_is_selected(long atkObject, long row, long column)
    Determines if the AtkObject at the specified column and row is selected.
    (package private) static long
    atkTable_ref_at(long atkObject, long row, long column)
    Get a reference to the table cell at row, column.
    (package private) static long
    atkTable_remove_column_selection(long atkObject, long column)
    Removes the specified column to the selection.
    (package private) static long
    atkTable_remove_row_selection(long atkObject, long row)
    Removes the specified row to the selection.
    (package private) static long
    atkText_add_selection(long atkObject, long start_offset, long end_offset)
    Adds a selection bounded by the specified offsets.
    (package private) static long
    atkText_get_bounded_ranges(long atkObject, long rect, long coord_type, long x_clip_type, long y_clip_type)
    Get the ranges of text in the specified bounding box.
    (package private) static long
    atkText_get_caret_offset(long atkObject)
    Gets the offset position of the caret (cursor).
    (package private) static long
    atkText_get_character_at_offset(long atkObject, long offset)
    Gets the specified text.
    (package private) static long
    Gets the character count.
    (package private) static long
    atkText_get_character_extents(long atkObject, long offset, long x, long y, long width, long height, long coords)
    Get the bounding box containing the glyph representing the character at a particular text offset.
    (package private) static long
    atkText_get_n_selections(long atkObject)
    Gets the number of selected regions.
    (package private) static long
    atkText_get_offset_at_point(long atkObject, long x, long y, long coords)
    Gets the offset of the character located at coordinates x and y.
    (package private) static long
    atkText_get_range_extents(long atkObject, long start_offset, long end_offset, long coord_type, long rect)
    Get the bounding box for text within the specified range.
    (package private) static long
    atkText_get_run_attributes(long atkObject, long offset, long start_offset, long end_offset)
    Creates an AtkAttributeSet which consists of the attributes explicitly set at the position offset in the text.
    (package private) static long
    atkText_get_selection(long atkObject, long selection_num, long start_offset, long end_offset)
    Gets the text from the specified selection.
    (package private) static long
    atkText_get_text(long atkObject, long start_offset, long end_offset)
    Gets the specified text.
    (package private) static long
    atkText_get_text_after_offset(long atkObject, long offset_value, long boundary_type, long start_offset, long end_offset)
    Gets the specified text.
    (package private) static long
    atkText_get_text_at_offset(long atkObject, long offset_value, long boundary_type, long start_offset, long end_offset)
    Gets the specified text.
    (package private) static long
    atkText_get_text_before_offset(long atkObject, long offset_value, long boundary_type, long start_offset, long end_offset)
    Gets the specified text.
    (package private) static long
    atkText_remove_selection(long atkObject, long selection_num)
    Removes the specified selection.
    (package private) static long
    atkText_set_caret_offset(long atkObject, long offset)
    Sets the caret (cursor) position to the specified offset.
    (package private) static long
    atkText_set_selection(long atkObject, long selection_num, long start_offset, long end_offset)
    Changes the start and end offset of the specified selection.
    (package private) static long
    atkValue_get_current_value(long atkObject, long value)
    Gets the value of this atkObject.
    (package private) static long
    atkValue_get_maximum_value(long atkObject, long value)
    Gets the maximum value of this atkObject.
    (package private) static long
    atkValue_get_minimum_value(long atkObject, long value)
    Gets the minimum value of this atkObject.
    (package private) static long
    atkValue_set_current_value(long atkObject, long value)
    Sets the value of this atkObject.
    (package private) static Color
    colorFromString(Display display, String rgbString)
     
    (package private) static AccessibleObject
    getAccessibleObject(long atkObject)
    Gets the AccessibleObject associated with the AtkObject handle from the Java map of AccessibleObjects.
    (package private) AccessibleObject
    getChildByID(int childId)
     
    (package private) AccessibleObject
    getChildByIndex(int childIndex)
     
    (package private) static Number
    getGValue(long value)
     
    (package private) static AtkActionIface
    getParentActionIface(long atkObject)
    Fills a Java AtkActionIface struct with that of the parent class.
    (package private) static AtkObjectClass
    Fills a Java AtkObjectClass struct with that of the parent class.
    (package private) static AtkComponentIface
    getParentComponentIface(long atkObject)
    Fills a Java AtkComponentIface struct with that of the parent class.
    (package private) static AtkEditableTextIface
    Fills a Java AtkEditableTextIface struct with that of the parent class.
    (package private) static AtkHypertextIface
    getParentHypertextIface(long atkObject)
    Fills a Java AtkHypertextIface struct with that of the parent class.
    (package private) static AtkSelectionIface
    getParentSelectionIface(long atkObject)
    Fills a Java AtkSelectionIface struct with that of the parent class.
    (package private) static AtkTableIface
    getParentTableIface(long atkObject)
    Fills a Java AtkTableIface struct with that of the parent class.
    (package private) static AtkTextIface
    getParentTextIface(long atkObject)
    Fills a Java AtkTextIface struct with that of the parent class.
    (package private) static AtkValueIface
    getParentValueIface(long atkObject)
    Fills a Java AtkValueIface struct with that of the parent class.
    (package private) static String
    getString(long strPtr)
     
    (package private) static long
     
    (package private) String
     
    (package private) static long
    gObjectClass_finalize(long atkObject)
     
    (package private) static int
    nextIndexOfChar(String string, String searchChars, int startIndex)
     
    (package private) static int
    nextIndexOfNotChar(String string, String searchChars, int startIndex)
     
    (package private) static int
    previousIndexOfChar(String string, String searchChars, int startIndex)
     
    (package private) static int
    previousIndexOfNotChar(String string, String searchChars, int startIndex)
     
    (package private) static void
     
    (package private) void
     
    (package private) void
    removeRelation(int type, Accessible target)
     
    (package private) void
     
    (package private) void
    sendEvent(int event, Object eventData)
     
    (package private) void
    sendEvent(int event, Object eventData, int childID)
     
    (package private) void
    setFocus(int childID)
     
    (package private) static void
    setGValue(long value, Number number)
     
    (package private) static int
    size(Collection<?> listeners)
     
    (package private) void
    textCaretMoved(int index)
     
    (package private) void
    textChanged(int type, int startIndex, int length)
     
    (package private) void
     
    (package private) static int
    toATKRelation(int relation)
     
    (package private) static long
    toDisplay(long gdkResource, long x, long y)
    Static toDisplay implementation for accessibility purposes.
    (package private) void
     
    (package private) static void
    windowPoint(AccessibleObject object, int[] x, int[] y)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • atkHandle

      long atkHandle
    • index

      int index
    • id

      int id
    • accessible

      Accessible accessible
    • parent

    • children

      AccessibleObject[] children
    • isLightweight

      boolean isLightweight
    • actionNamePtr

      static long actionNamePtr
    • descriptionPtr

      static long descriptionPtr
    • keybindingPtr

      static long keybindingPtr
    • namePtr

      static long namePtr
    • AccessibleObjects

      static final Map<LONG, AccessibleObject> AccessibleObjects
    • DEBUG

      static final boolean DEBUG
  • Constructor Details

    • AccessibleObject

      AccessibleObject(long type, long widget, Accessible accessible, boolean isLightweight)
  • Method Details

    • print

      static void print(String str)
    • size

      static int size(Collection<?> listeners)
    • getParentActionIface

      static AtkActionIface getParentActionIface(long atkObject)
      Fills a Java AtkActionIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkActionIface Java object representing the interface struct of atkObject's parent
    • atkAction_do_action

      static long atkAction_do_action(long atkObject, long index)
      Performs the specified action on atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - the action index corresponding to the action to be performed
      Returns:
      long int representing whether the action succeeded: 1 for success, 0 for failure
    • atkAction_get_n_actions

      static long atkAction_get_n_actions(long atkObject)
      Returns the number of accessible actions available on atkObject. If there are more than one, the first is considered the default action of the object. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      the number of actions available
    • atkAction_get_description

      static long atkAction_get_description(long atkObject, long index)
      Returns a description of the specified action of the atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - the action index corresponding to the action to be performed
      Returns:
      a pointer to the description string
    • atkAction_get_keybinding

      static long atkAction_get_keybinding(long atkObject, long index)
      Returns the keybinding which can be used to activate this atkObject, if one exists. Example: "Ctrl+1" This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - the action index corresponding to the action to be performed
      Returns:
      a pointer to the keybinding string
    • atkAction_get_name

      static long atkAction_get_name(long atkObject, long index)
      Returns the name of the specified action of the atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - the action index corresponding to the action to be performed
      Returns:
      a pointer to the name string
    • getParentComponentIface

      static AtkComponentIface getParentComponentIface(long atkObject)
      Fills a Java AtkComponentIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkComponentIface Java object representing the interface struct of atkObject's parent
    • atkComponent_get_extents

      static long atkComponent_get_extents(long atkObject, long x, long y, long width, long height, long coord_type)
      Gets the rectangle which gives the extent of the component. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      x - memory address of gint to put x coordinate
      y - memory address of gint to put y coordinate
      width - memory address of gint to put width coordinate
      height - memory address of gint to put height coordinate
      coord_type - specifies whether the coordinates are relative to the screen or to the components top level window
      Returns:
      0 (this is a void function at the native level)
    • atkComponent_ref_accessible_at_point

      static long atkComponent_ref_accessible_at_point(long atkObject, long x, long y, long coord_type)
      Gets a reference to the accessible child, if one exists, at the coordinate point specified by x and y. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      x - long integer representing the x coordinate
      y - long integer representing the y coordinate
      coord_type - specifies whether the coordinates are relative to the screen or to the components top level window
      Returns:
      a pointer to the accessible child, if one exists
    • getParentEditableTextIface

      static AtkEditableTextIface getParentEditableTextIface(long atkObject)
      Fills a Java AtkEditableTextIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkEdtiableTextIface Java object representing the interface struct of atkObject's parent
    • atkEditableText_set_run_attributes

      static long atkEditableText_set_run_attributes(long atkObject, long attrib_set, long start_offset, long end_offset)
      Sets the attributes for a specified range. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      attrib_set - a pointer to an AtkAttributeSet
      start_offset - start range in which to set attributes
      end_offset - end of range in which to set attributes
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • colorFromString

      static Color colorFromString(Display display, String rgbString)
    • atkEditableText_set_text_contents

      static long atkEditableText_set_text_contents(long atkObject, long string)
      Sets text contents of the atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      string - the text to be set
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkEditableText_insert_text

      static long atkEditableText_insert_text(long atkObject, long string, long string_length, long position)
      Inserts text at a given position. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      string - the text to insert
      string_length - the length of the text to insert, in bytes
      position - the caller initializes this to the position at which to insert the text. After the call, it points at the position after the newly inserted text.
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkEditableText_copy_text

      static long atkEditableText_copy_text(long atkObject, long start_pos, long end_pos)
      Copies text from start_pos up to (but not including) end_pos into the clipboard. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      start_pos - the start position of the text to be copied
      end_pos - the end position of the text to be copied
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkEditableText_cut_text

      static long atkEditableText_cut_text(long atkObject, long start_pos, long end_pos)
      Cuts text from start_pos up to (but not including) end_pos into the clipboard. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      start_pos - the start position of the text to be cut
      end_pos - the end position of the text to be cut
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkEditableText_delete_text

      static long atkEditableText_delete_text(long atkObject, long start_pos, long end_pos)
      Delete text start_pos up to (but not including) end_pos. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      start_pos - the start position of the text to be deleted
      end_pos - the end position of the text to be deleted
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkEditableText_paste_text

      static long atkEditableText_paste_text(long atkObject, long position)
      Paste text from clipboard to specified position. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      position - the position to paste
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • getParentHypertextIface

      static AtkHypertextIface getParentHypertextIface(long atkObject)
      Fills a Java AtkHypertextIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkHypertextIface Java object representing the interface struct of atkObject's parent
    • atkHypertext_get_link

      static long atkHypertext_get_link(long atkObject, long link_index)
      Gets the link in this hypertext document at index link_index. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      link_index - the index of the link
      Returns:
      a pointer to the AtkHypertext at link_index in atkObject
    • atkHypertext_get_n_links

      static long atkHypertext_get_n_links(long atkObject)
      Gets the number of links in this hypertext document. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an integer representing the number of links in the hypertext in atkObject
    • getParentAtkObjectClass

      static AtkObjectClass getParentAtkObjectClass()
      Fills a Java AtkObjectClass struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkObjectClass object representing the class struct of atkObject's parent
    • atkObject_get_description

      static long atkObject_get_description(long atkObject)
      Gets the accessible description of the widget associated with atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a pointer to the gchar representation of the accessible description
    • atkObject_get_attributes

      static long atkObject_get_attributes(long atkObject)
      Get a list of properties applied to this object as a whole, as an AtkAttributeSet consisting of name-value pairs. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a pointer to the AtkAttributeSet consisting of all properties applied to atkObject (can be empty if no properties are set)
    • atkObject_get_name

      static long atkObject_get_name(long atkObject)
      Gets the accessible name of the widget associated with atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a pointer to the gchar representation of the accessible name
    • atkObject_get_n_children

      static long atkObject_get_n_children(long atkObject)
      Gets the number of accessible children of the widget associated with atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an int representing the number of accessible children associated with atkObject
    • atkObject_get_index_in_parent

      static long atkObject_get_index_in_parent(long atkObject)
      Gets the 0-based index of the widget (associated with atkObject) in its parent. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an int which is the index of the accessible atkObject in its parent
    • atkObject_get_parent

      static long atkObject_get_parent(long atkObject)
      Gets the accessible parent of the widget associated with atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a pointer to the AtkObject representing the accessible parent of atkObject
    • atkObject_get_role

      static long atkObject_get_role(long atkObject)
      Gets the role of the accessible associated with atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      the AtkRole of atkObject
    • atkObject_ref_child

      static long atkObject_ref_child(long atkObject, long index)
      Gets a reference to the accessible child whose parent is atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - the index of the child
      Returns:
      a pointer to the AtkObject of the child at the provided index
    • atkObject_ref_state_set

      static long atkObject_ref_state_set(long atkObject)
      Gets a reference to the state set of the accessible associated with atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a pointer to the AtkStateSet for the accessible widget atkObject
    • getParentSelectionIface

      static AtkSelectionIface getParentSelectionIface(long atkObject)
      Fills a Java AtkSelectionIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkSelectionIface Java object representing the interface struct of atkObject's parent
    • atkSelection_is_child_selected

      static long atkSelection_is_child_selected(long atkObject, long index)
      Determines if the current child of this atkObject is selected. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - a long integer representing the index
      Returns:
      a long integer where 1 represents TRUE, 0 otherwise
    • atkSelection_ref_selection

      static long atkSelection_ref_selection(long atkObject, long index)
      Gets a reference to the atkObject representing the specified selected child of the object. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - a long integer representing the index
      Returns:
      a pointer to the AtkObject representing the selected accessible, or 0
    • getParentTableIface

      static AtkTableIface getParentTableIface(long atkObject)
      Fills a Java AtkTableIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkTableIface Java object representing the interface struct of atkObject's parent
    • atkTable_ref_at

      static long atkTable_ref_at(long atkObject, long row, long column)
      Get a reference to the table cell at row, column. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing a row in atkObject
      column - a long integer representing a column in atkObject
      Returns:
      a pointer to an AtkObject representing the specified table
    • atkTable_get_index_at

      static long atkTable_get_index_at(long atkObject, long row, long column)
      Get a reference to the table cell at row, column. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing a row in atkObject
      column - a long integer representing a column in atkObject
      Returns:
      a pointer to an AtkObject representing the specified table
    • atkTable_get_column_at_index

      static long atkTable_get_column_at_index(long atkObject, long index)
      Gets a gint representing the column at the specified index. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - a long integer representing an index in the table
      Returns:
      a long integer representing the column at the specified index, or -1
    • atkTable_get_row_at_index

      static long atkTable_get_row_at_index(long atkObject, long index)
      Gets a gint representing the row at the specified index. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      index - a long integer representing an index in the table
      Returns:
      a long integer representing the row at the specified index, or -1
    • atkTable_get_n_columns

      static long atkTable_get_n_columns(long atkObject)
      Gets the number of columns in the table. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a long integer representing the number of columns, or 0
    • atkTable_get_n_rows

      static long atkTable_get_n_rows(long atkObject)
      Gets the number of rows in the table. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a long integer representing the number of rows, or 0
    • atkTable_get_column_extent_at

      static long atkTable_get_column_extent_at(long atkObject, long row, long column)
      Gets the number of columns occupied at the specified row and column. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the row
      column - a long integer representing the column
      Returns:
      a long integer representing the column extent at the specified position, or 0
    • atkTable_get_row_extent_at

      static long atkTable_get_row_extent_at(long atkObject, long row, long column)
      Gets the number of rows occupied at the specified row and column. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the row
      column - a long integer representing the column
      Returns:
      a long integer representing the row extent at the specified position, or 0
    • atkTable_get_caption

      static long atkTable_get_caption(long atkObject)
      Gets the caption for the table. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a pointer to the AtkObject representing the caption, or 0
    • atkTable_get_summary

      static long atkTable_get_summary(long atkObject)
      Gets the summary for the table. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a pointer to the AtkObject representing the summary, or 0
    • atkTable_get_column_description

      static long atkTable_get_column_description(long atkObject, long column)
      Gets the description text of the specified column. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      column - a long integer representing the specified column
      Returns:
      a pointer to the gchar representation of the column description, or 0
    • atkTable_get_column_header

      static long atkTable_get_column_header(long atkObject, long column)
      Gets the column header of a specified column. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      column - a long integer representing the specified column
      Returns:
      a pointer to the AtkObject representing the specified column header, or 0
    • atkTable_get_row_description

      static long atkTable_get_row_description(long atkObject, long row)
      Gets the description text of the specified row. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the specified row
      Returns:
      a pointer to the gchar representation of the row description, or 0
    • atkTable_get_row_header

      static long atkTable_get_row_header(long atkObject, long row)
      Gets the column header of a specified row. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the specified row
      Returns:
      a pointer to the AtkObject representing the specified row header, or 0
    • atkTable_get_selected_columns

      static long atkTable_get_selected_columns(long atkObject, long selected)
      Gets the selected columns of the table. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      selected - an array of integer pointers that is to contain the selected column numbers
      Returns:
      a long integer representing the number of columns selected, or 0
    • atkTable_get_selected_rows

      static long atkTable_get_selected_rows(long atkObject, long selected)
      Gets the selected rows of the table. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      selected - an array of integer pointers that is to contain the selected row numbers
      Returns:
      a long integer representing the number of rows selected, or 0
    • atkTable_is_column_selected

      static long atkTable_is_column_selected(long atkObject, long column)
      Determines if the specified column is selected. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      column - a long integer representing the column
      Returns:
      a long integer where 1 represents TRUE, 0 otherwise
    • atkTable_is_row_selected

      static long atkTable_is_row_selected(long atkObject, long row)
      Determines if the specified row is selected. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the row
      Returns:
      a long integer where 1 represents TRUE, 0 otherwise
    • atkTable_is_selected

      static long atkTable_is_selected(long atkObject, long row, long column)
      Determines if the AtkObject at the specified column and row is selected. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the row
      column - a long integer representing the column
      Returns:
      a long integer where 1 represents TRUE, 0 otherwise
    • atkTable_add_row_selection

      static long atkTable_add_row_selection(long atkObject, long row)
      Adds the specified row to the selection. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the row
      Returns:
      a long int representing whether the action succeeded: 1 for success, 0 for failure
    • atkTable_remove_row_selection

      static long atkTable_remove_row_selection(long atkObject, long row)
      Removes the specified row to the selection. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      row - a long integer representing the row
      Returns:
      a long int representing whether the action succeeded: 1 for success, 0 for failure
    • atkTable_add_column_selection

      static long atkTable_add_column_selection(long atkObject, long column)
      Adds the specified column to the selection. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      column - a long integer representing the column
      Returns:
      a long int representing whether the action succeeded: 1 for success, 0 for failure
    • atkTable_remove_column_selection

      static long atkTable_remove_column_selection(long atkObject, long column)
      Removes the specified column to the selection. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      column - a long integer representing the column
      Returns:
      a long int representing whether the action succeeded: 1 for success, 0 for failure
    • getParentTextIface

      static AtkTextIface getParentTextIface(long atkObject)
      Fills a Java AtkTextIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkTextIface Java object representing the interface struct of atkObject's parent
    • getString

      static String getString(long strPtr)
    • getStringPtr

      static long getStringPtr(String str)
    • atkText_get_character_extents

      static long atkText_get_character_extents(long atkObject, long offset, long x, long y, long width, long height, long coords)
      Get the bounding box containing the glyph representing the character at a particular text offset. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      offset - the offset of the text character for which bounding info is required
      x - the pointer for the x coordinate of the bounding box
      y - the pointer for the y coordinate of the bounding box
      width - the pointer for the width of the bounding box
      height - the pointer for the height of the bounding box
      coords - long int representing the AtkCoordType for the coordinates
      Returns:
      a long int representation of 0 indicating that the method completed successfully
    • atkText_get_range_extents

      static long atkText_get_range_extents(long atkObject, long start_offset, long end_offset, long coord_type, long rect)
      Get the bounding box for text within the specified range. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      start_offset - the offset of the first text character for which bounding info is required
      end_offset - the offset of the last text character after the last character for which boundary info is required
      coord_type - long int representing the AtkCoordType for the coordinates
      rect - a pointer to the AtkTextRectangle which is filled by this function
      Returns:
      a long int representation of 0 indicating that the method completed successfully
    • atkText_get_run_attributes

      static long atkText_get_run_attributes(long atkObject, long offset, long start_offset, long end_offset)
      Creates an AtkAttributeSet which consists of the attributes explicitly set at the position offset in the text. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      offset - the offset at which to get the attributes
      start_offset - the address to put the start offset of the range
      end_offset - the address to put the end offset of the range
      Returns:
      a pointer to the AtkAttributeSet created
    • atkText_get_offset_at_point

      static long atkText_get_offset_at_point(long atkObject, long x, long y, long coords)
      Gets the offset of the character located at coordinates x and y. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      x - screen x-position of the character
      y - screen y-position of the character
      coords - long int representing the AtkCoordType for the coordinates
      Returns:
      the offset to the character which is located at the specified x and y coordinates
    • atkText_add_selection

      static long atkText_add_selection(long atkObject, long start_offset, long end_offset)
      Adds a selection bounded by the specified offsets. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      start_offset - the start position of the selected region
      end_offset - the offset of the first character after the selected region
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkText_remove_selection

      static long atkText_remove_selection(long atkObject, long selection_num)
      Removes the specified selection. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      selection_num - the selection number.
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkText_set_caret_offset

      static long atkText_set_caret_offset(long atkObject, long offset)
      Sets the caret (cursor) position to the specified offset. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      offset - the position
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkText_set_selection

      static long atkText_set_selection(long atkObject, long selection_num, long start_offset, long end_offset)
      Changes the start and end offset of the specified selection. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      selection_num - the selection number
      start_offset - the new start position of the selection
      end_offset - the new end position of the selection
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • atkText_get_caret_offset

      static long atkText_get_caret_offset(long atkObject)
      Gets the offset position of the caret (cursor). This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      a long int representation of the offset position of the caret (cursor)
    • atkText_get_bounded_ranges

      static long atkText_get_bounded_ranges(long atkObject, long rect, long coord_type, long x_clip_type, long y_clip_type)
      Get the ranges of text in the specified bounding box. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      rect - the AtkTextRectangle giving the dimensions of the bounding box
      coord_type - long int representing the AtkCoordType for the coordinates
      x_clip_type - a long int representing the AtkTextClipType of the horizontal clip
      y_clip_type - a long int representing the AtkTextClipType of the vertical clip
      Returns:
      a pointer to the array of AtkTextRanges
    • atkText_get_character_at_offset

      static long atkText_get_character_at_offset(long atkObject, long offset)
      Gets the specified text. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      offset - position
      Returns:
      a long int representing the character at offset
    • atkText_get_character_count

      static long atkText_get_character_count(long atkObject)
      Gets the character count. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      the number of characters
    • atkText_get_n_selections

      static long atkText_get_n_selections(long atkObject)
      Gets the number of selected regions. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      the number of selected regions, or -1 if a failure occurred
    • atkText_get_selection

      static long atkText_get_selection(long atkObject, long selection_num, long start_offset, long end_offset)
      Gets the text from the specified selection. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      selection_num - the selection number
      start_offset - passes back the start position of the selected region
      end_offset - passes back the end position of the selected region
      Returns:
      a pointer to the newly allocated string containing the selected text
    • atkText_get_text

      static long atkText_get_text(long atkObject, long start_offset, long end_offset)
      Gets the specified text. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      start_offset - start position
      end_offset - end position, or -1 for the end of the string
      Returns:
      a pointer to the newly allocated string containing the text from start_offset up to (but not including) end_offset
    • atkText_get_text_after_offset

      static long atkText_get_text_after_offset(long atkObject, long offset_value, long boundary_type, long start_offset, long end_offset)
      Gets the specified text. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      boundary_type - the AtkTextBoundary
      start_offset - the start offset of the returned string
      end_offset - the end_offset of the first character after the returned string
      offset - position
      Returns:
      a pointer to the newly allocated string containing the text after offset bounded by the specified boundary_type
    • atkText_get_text_at_offset

      static long atkText_get_text_at_offset(long atkObject, long offset_value, long boundary_type, long start_offset, long end_offset)
      Gets the specified text. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      boundary_type - the AtkTextBoundary
      start_offset - the start offset of the returned string
      end_offset - the end_offset of the first character after the returned string
      offset - position
      Returns:
      a pointer to the newly allocated string containing the text at offset bounded by the specified boundary_type
    • atkText_get_text_before_offset

      static long atkText_get_text_before_offset(long atkObject, long offset_value, long boundary_type, long start_offset, long end_offset)
      Gets the specified text. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      boundary_type - the AtkTextBoundary
      start_offset - the start offset of the returned string
      end_offset - the end_offset of the first character after the returned string
      offset - position
      Returns:
      a pointer to the newly allocated string containing the text before offset bounded by the specified boundary_type
    • setGValue

      static void setGValue(long value, Number number)
    • getGValue

      static Number getGValue(long value)
    • getParentValueIface

      static AtkValueIface getParentValueIface(long atkObject)
      Fills a Java AtkValueIface struct with that of the parent class. This is a Java implementation of what is referred to in GObject as "chaining up". See: https://developer.gnome.org/gobject/stable/howto-gobject-chainup.html
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AtkValueIface Java object representing the interface struct of atkObject's parent
    • atkValue_get_current_value

      static long atkValue_get_current_value(long atkObject, long value)
      Gets the value of this atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      value - a pointer to a GValue that represents the current value
      Returns:
      0, this is a void function -- the value is stored in the parameter
    • atkValue_get_maximum_value

      static long atkValue_get_maximum_value(long atkObject, long value)
      Gets the maximum value of this atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      value - a pointer to a GValue that represents the current maximum value
      Returns:
      0, this is a void function -- the value is stored in the parameter
    • atkValue_get_minimum_value

      static long atkValue_get_minimum_value(long atkObject, long value)
      Gets the minimum value of this atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      value - a pointer to a GValue that represents the current minimum value
      Returns:
      0, this is a void function -- the value is stored in the parameter
    • atkValue_set_current_value

      static long atkValue_set_current_value(long atkObject, long value)
      Sets the value of this atkObject. This is the implementation of an ATK function which queries the Accessible listeners at the Java level. On GTK3 the ATK interfaces are implemented in os_custom.c and access this method via JNI.
      Parameters:
      atkObject - a pointer to the current AtkObject
      value - a pointer to the new GValue to be set
      Returns:
      a long int representation of 1 for success, 0 otherwise
    • getAccessibleObject

      static AccessibleObject getAccessibleObject(long atkObject)
      Gets the AccessibleObject associated with the AtkObject handle from the Java map of AccessibleObjects.
      Parameters:
      atkObject - a pointer to the current AtkObject
      Returns:
      an AccessibleObject associated with the provided AtkObject pointer
    • getChildByID

      AccessibleObject getChildByID(int childId)
    • getChildByIndex

      AccessibleObject getChildByIndex(int childIndex)
    • getText

      String getText()
    • gObjectClass_finalize

      static long gObjectClass_finalize(long atkObject)
    • toATKRelation

      static int toATKRelation(int relation)
    • toDisplay

      static long toDisplay(long gdkResource, long x, long y)
      Static toDisplay implementation for accessibility purposes. This function is called from os_custom.c via JNI.
      Parameters:
      gdkResource - the GdkWindow (GTK3) or GdkSurface (GTK4)
      x - a pointer to an integer which represents the x coordinate
      y - a pointer to an integer which represents the y coordinate
      Returns:
      0
    • windowPoint

      static void windowPoint(AccessibleObject object, int[] x, int[] y)
    • nextIndexOfChar

      static int nextIndexOfChar(String string, String searchChars, int startIndex)
    • nextIndexOfNotChar

      static int nextIndexOfNotChar(String string, String searchChars, int startIndex)
    • previousIndexOfChar

      static int previousIndexOfChar(String string, String searchChars, int startIndex)
    • previousIndexOfNotChar

      static int previousIndexOfNotChar(String string, String searchChars, int startIndex)
    • addRelation

      void addRelation(int type, Accessible target)
    • release

      void release()
    • removeRelation

      void removeRelation(int type, Accessible target)
    • selectionChanged

      void selectionChanged()
    • sendEvent

      void sendEvent(int event, Object eventData)
    • sendEvent

      void sendEvent(int event, Object eventData, int childID)
    • setFocus

      void setFocus(int childID)
    • textCaretMoved

      void textCaretMoved(int index)
    • textChanged

      void textChanged(int type, int startIndex, int length)
    • textSelectionChanged

      void textSelectionChanged()
    • updateChildren

      void updateChildren()