Top Fields Constructors Methods
org.eclipse.swt.accessibility

pack-priv Class AccessibleObject

extends Object
Class Inheritance
Imports
java.util.*, .List, org.eclipse.swt.*, org.eclipse.swt.graphics.*, org.eclipse.swt.internal.*, org.eclipse.swt.internal.accessibility.gtk.*, org.eclipse.swt.internal.gtk.*, org.eclipse.swt.internal.gtk3.*, org.eclipse.swt.widgets.*

Field Summary

Modifier and TypeField and Description
pack-priv Accessible
pack-priv static final Map<LONG, AccessibleObject>
pack-priv static long
pack-priv long
pack-priv AccessibleObject[]
pack-priv static final boolean
pack-priv static long
pack-priv int
pack-priv int
pack-priv boolean
pack-priv static long
pack-priv static long
pack-priv AccessibleObject

Constructor Summary

AccessConstructor and Description
pack-priv
AccessibleObject(long type, long widget, Accessible accessible, boolean isLightweight)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addRelation(int type, Accessible target)

pack-priv static long

Returns:

long int representing whether the action succeeded: 1 for success, 0 for failure
atkAction_do_action
(long
a pointer to the current AtkObject
atkObject
,
long
the action index corresponding to the action to be performed
index
)

Performs the specified action on atkObject.

pack-priv static long

Returns:

a pointer to the description string
atkAction_get_description
(long
a pointer to the current AtkObject
atkObject
,
long
the action index corresponding to the action to be performed
index
)

Returns a description of the specified action of the atkObject.

pack-priv static long

Returns:

a pointer to the keybinding string
atkAction_get_keybinding
(long
a pointer to the current AtkObject
atkObject
,
long
the action index corresponding to the action to be performed
index
)

Returns the keybinding which can be used to activate this atkObject, if one exists.

pack-priv static long

Returns:

the number of actions available
atkAction_get_n_actions
(long
a pointer to the current AtkObject
atkObject
)

Returns the number of accessible actions available on atkObject.

pack-priv static long

Returns:

a pointer to the name string
atkAction_get_name
(long
a pointer to the current AtkObject
atkObject
,
long
the action index corresponding to the action to be performed
index
)

Returns the name of the specified action of the atkObject.

pack-priv static long

Returns:

0 (this is a void function at the native level)
atkComponent_get_extents
(long
a pointer to the current AtkObject
atkObject
,
long
memory address of gint to put x coordinate
x
,
long
memory address of gint to put y coordinate
y
,
long
memory address of gint to put width coordinate
width
,
long
memory address of gint to put height coordinate
height
,
long
specifies whether the coordinates are relative to the screen or to the components top level window
coord_type
)

Gets the rectangle which gives the extent of the component.

pack-priv static long

Returns:

a pointer to the accessible child, if one exists
atkComponent_ref_accessible_at_point
(long
a pointer to the current AtkObject
atkObject
,
long
long integer representing the x coordinate
x
,
long
long integer representing the y coordinate
y
,
long
specifies whether the coordinates are relative to the screen or to the components top level window
coord_type
)

Gets a reference to the accessible child, if one exists, at the coordinate point specified by x and y.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkEditableText_copy_text
(long
a pointer to the current AtkObject
atkObject
,
long
the start position of the text to be copied
start_pos
,
long
the end position of the text to be copied
end_pos
)

Copies text from start_pos up to (but not including) end_pos into the clipboard.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkEditableText_cut_text
(long
a pointer to the current AtkObject
atkObject
,
long
the start position of the text to be cut
start_pos
,
long
the end position of the text to be cut
end_pos
)

Cuts text from start_pos up to (but not including) end_pos into the clipboard.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkEditableText_delete_text
(long
a pointer to the current AtkObject
atkObject
,
long
the start position of the text to be deleted
start_pos
,
long
the end position of the text to be deleted
end_pos
)

Delete text start_pos up to (but not including) end_pos.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkEditableText_insert_text
(long
a pointer to the current AtkObject
atkObject
,
long
the text to insert
string
,
long
the length of the text to insert, in bytes
string_length
,
long
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.
position
)

Inserts text at a given position.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkEditableText_paste_text
(long
a pointer to the current AtkObject
atkObject
,
long
the position to paste
position
)

Paste text from clipboard to specified position.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkEditableText_set_run_attributes
(long
a pointer to the current AtkObject
atkObject
,
long
a pointer to an AtkAttributeSet
attrib_set
,
long
start range in which to set attributes
start_offset
,
long
end of range in which to set attributes
end_offset
)

Sets the attributes for a specified range.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkEditableText_set_text_contents
(long
a pointer to the current AtkObject
atkObject
,
long
the text to be set
string
)

Sets text contents of the atkObject.

pack-priv static long

Returns:

a pointer to the AtkAttributeSet consisting of all properties applied to atkObject (can be empty if no properties are set)
atkObject_get_attributes
(long
a pointer to the current AtkObject
atkObject
)

Get a list of properties applied to this object as a whole, as an AtkAttributeSet consisting of name-value pairs.

pack-priv static long

Returns:

a pointer to the gchar representation of the accessible description
atkObject_get_description
(long
a pointer to the current AtkObject
atkObject
)

Gets the accessible description of the widget associated with atkObject.

pack-priv static long

Returns:

an int which is the index of the accessible atkObject in its parent
atkObject_get_index_in_parent
(long
a pointer to the current AtkObject
atkObject
)

Gets the 0-based index of the widget (associated with atkObject) in its parent.

pack-priv static long

Returns:

an int representing the number of accessible children associated with atkObject
atkObject_get_n_children
(long
a pointer to the current AtkObject
atkObject
)

Gets the number of accessible children of the widget associated with atkObject.

pack-priv static long

Returns:

a pointer to the gchar representation of the accessible name
atkObject_get_name
(long
a pointer to the current AtkObject
atkObject
)

Gets the accessible name of the widget associated with atkObject.

pack-priv static long

Returns:

a pointer to the AtkObject representing the accessible parent of atkObject
atkObject_get_parent
(long
a pointer to the current AtkObject
atkObject
)

Gets the accessible parent of the widget associated with atkObject.

pack-priv static long

Returns:

the AtkRole of atkObject
atkObject_get_role
(long
a pointer to the current AtkObject
atkObject
)

Gets the role of the accessible associated with atkObject.

pack-priv static long

Returns:

a pointer to the AtkObject of the child at the provided index
atkObject_ref_child
(long
a pointer to the current AtkObject
atkObject
,
long
the index of the child
index
)

Gets a reference to the accessible child whose parent is atkObject.

pack-priv static long

Returns:

a pointer to the AtkStateSet for the accessible widget atkObject
atkObject_ref_state_set
(long
a pointer to the current AtkObject
atkObject
)

Gets a reference to the state set of the accessible associated with atkObject.

pack-priv static long

Returns:

a long integer where 1 represents TRUE, 0 otherwise
atkSelection_is_child_selected
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the index
index
)

Determines if the current child of this atkObject is selected.

pack-priv static long

Returns:

a pointer to the AtkObject representing the selected accessible, or 0
atkSelection_ref_selection
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the index
index
)

Gets a reference to the atkObject representing the specified selected child of the object.

pack-priv static long

Returns:

a long int representing whether the action succeeded: 1 for success, 0 for failure
atkTable_add_column_selection
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the column
column
)

Adds the specified column to the selection.

pack-priv static long

Returns:

a long int representing whether the action succeeded: 1 for success, 0 for failure
atkTable_add_row_selection
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the row
row
)

Adds the specified row to the selection.

pack-priv static long

Returns:

a pointer to the AtkObject representing the caption, or 0
atkTable_get_caption
(long
a pointer to the current AtkObject
atkObject
)

Gets the caption for the table.

pack-priv static long

Returns:

a long integer representing the column at the specified index, or -1
atkTable_get_column_at_index
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing an index in the table
index
)

Gets a gint representing the column at the specified index.

pack-priv static long

Returns:

a pointer to the gchar representation of the column description, or 0
atkTable_get_column_description
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the specified column
column
)

Gets the description text of the specified column.

pack-priv static long

Returns:

a long integer representing the column extent at the specified position, or 0
atkTable_get_column_extent_at
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the row
row
,
long
a long integer representing the column
column
)

Gets the number of columns occupied at the specified row and column.

pack-priv static long

Returns:

a pointer to the AtkObject representing the specified column header, or 0
atkTable_get_column_header
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the specified column
column
)

Gets the column header of a specified column.

pack-priv static long

Returns:

a pointer to an AtkObject representing the specified table
atkTable_get_index_at
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing a row in atkObject
row
,
long
a long integer representing a column in atkObject
column
)

Get a reference to the table cell at row, column.

pack-priv static long

Returns:

a long integer representing the number of columns, or 0
atkTable_get_n_columns
(long
a pointer to the current AtkObject
atkObject
)

Gets the number of columns in the table.

pack-priv static long

Returns:

a long integer representing the number of rows, or 0
atkTable_get_n_rows
(long
a pointer to the current AtkObject
atkObject
)

Gets the number of rows in the table.

pack-priv static long

Returns:

a long integer representing the row at the specified index, or -1
atkTable_get_row_at_index
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing an index in the table
index
)

Gets a gint representing the row at the specified index.

pack-priv static long

Returns:

a pointer to the gchar representation of the row description, or 0
atkTable_get_row_description
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the specified row
row
)

Gets the description text of the specified row.

pack-priv static long

Returns:

a long integer representing the row extent at the specified position, or 0
atkTable_get_row_extent_at
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the row
row
,
long
a long integer representing the column
column
)

Gets the number of rows occupied at the specified row and column.

pack-priv static long

Returns:

a pointer to the AtkObject representing the specified row header, or 0
atkTable_get_row_header
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the specified row
row
)

Gets the column header of a specified row.

pack-priv static long

Returns:

a long integer representing the number of columns selected, or 0
atkTable_get_selected_columns
(long
a pointer to the current AtkObject
atkObject
,
long
an array of integer pointers that is to contain the selected column numbers
selected
)

Gets the selected columns of the table.

pack-priv static long

Returns:

a long integer representing the number of rows selected, or 0
atkTable_get_selected_rows
(long
a pointer to the current AtkObject
atkObject
,
long
an array of integer pointers that is to contain the selected row numbers
selected
)

Gets the selected rows of the table.

pack-priv static long

Returns:

a pointer to the AtkObject representing the summary, or 0
atkTable_get_summary
(long
a pointer to the current AtkObject
atkObject
)

Gets the summary for the table.

pack-priv static long

Returns:

a long integer where 1 represents TRUE, 0 otherwise
atkTable_is_column_selected
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the column
column
)

Determines if the specified column is selected.

pack-priv static long

Returns:

a long integer where 1 represents TRUE, 0 otherwise
atkTable_is_row_selected
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the row
row
)

Determines if the specified row is selected.

pack-priv static long

Returns:

a long integer where 1 represents TRUE, 0 otherwise
atkTable_is_selected
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the row
row
,
long
a long integer representing the column
column
)

Determines if the AtkObject at the specified column and row is selected.

pack-priv static long

Returns:

a pointer to an AtkObject representing the specified table
atkTable_ref_at
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing a row in atkObject
row
,
long
a long integer representing a column in atkObject
column
)

Get a reference to the table cell at row, column.

pack-priv static long

Returns:

a long int representing whether the action succeeded: 1 for success, 0 for failure
atkTable_remove_column_selection
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the column
column
)

Removes the specified column to the selection.

pack-priv static long

Returns:

a long int representing whether the action succeeded: 1 for success, 0 for failure
atkTable_remove_row_selection
(long
a pointer to the current AtkObject
atkObject
,
long
a long integer representing the row
row
)

Removes the specified row to the selection.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkText_add_selection
(long
a pointer to the current AtkObject
atkObject
,
long
the start position of the selected region
start_offset
,
long
the offset of the first character after the selected region
end_offset
)

Adds a selection bounded by the specified offsets.

pack-priv static long

Returns:

a pointer to the array of AtkTextRanges
atkText_get_bounded_ranges
(long
a pointer to the current AtkObject
atkObject
,
long
the AtkTextRectangle giving the dimensions of the bounding box
rect
,
long
long int representing the AtkCoordType for the coordinates
coord_type
,
long
a long int representing the AtkTextClipType of the horizontal clip
x_clip_type
,
long
a long int representing the AtkTextClipType of the vertical clip
y_clip_type
)

Get the ranges of text in the specified bounding box.

pack-priv static long

Returns:

a long int representation of the offset position of the caret (cursor)
atkText_get_caret_offset
(long
a pointer to the current AtkObject
atkObject
)

Gets the offset position of the caret (cursor).

pack-priv static long

Returns:

a long int representing the character at offset
atkText_get_character_at_offset
(long
a pointer to the current AtkObject
atkObject
,
long
position
offset
)

Gets the specified text.

pack-priv static long

Returns:

the number of characters
atkText_get_character_count
(long
a pointer to the current AtkObject
atkObject
)

Gets the character count.

pack-priv static long

Returns:

a long int representation of 0 indicating that the method completed successfully
atkText_get_character_extents
(long
a pointer to the current AtkObject
atkObject
,
long
the offset of the text character for which bounding info is required
offset
,
long
the pointer for the x coordinate of the bounding box
x
,
long
the pointer for the y coordinate of the bounding box
y
,
long
the pointer for the width of the bounding box
width
,
long
the pointer for the height of the bounding box
height
,
long
long int representing the AtkCoordType for the coordinates
coords
)

Get the bounding box containing the glyph representing the character at a particular text offset.

pack-priv static long

Returns:

the number of selected regions, or -1 if a failure occurred
atkText_get_n_selections
(long
a pointer to the current AtkObject
atkObject
)

Gets the number of selected regions.

pack-priv static long

Returns:

the offset to the character which is located at the specified x and y coordinates
atkText_get_offset_at_point
(long
a pointer to the current AtkObject
atkObject
,
long
screen x-position of the character
x
,
long
screen y-position of the character
y
,
long
long int representing the AtkCoordType for the coordinates
coords
)

Gets the offset of the character located at coordinates x and y.

pack-priv static long

Returns:

a long int representation of 0 indicating that the method completed successfully
atkText_get_range_extents
(long
a pointer to the current AtkObject
atkObject
,
long
the offset of the first text character for which bounding info is required
start_offset
,
long
the offset of the last text character after the last character for which boundary info is required
end_offset
,
long
long int representing the AtkCoordType for the coordinates
coord_type
,
long
a pointer to the AtkTextRectangle which is filled by this function
rect
)

Get the bounding box for text within the specified range.

pack-priv static long

Returns:

a pointer to the AtkAttributeSet created
atkText_get_run_attributes
(long
a pointer to the current AtkObject
atkObject
,
long
the offset at which to get the attributes
offset
,
long
the address to put the start offset of the range
start_offset
,
long
the address to put the end offset of the range
end_offset
)

Creates an AtkAttributeSet which consists of the attributes explicitly set at the position offset in the text.

pack-priv static long

Returns:

a pointer to the newly allocated string containing the selected text
atkText_get_selection
(long
a pointer to the current AtkObject
atkObject
,
long
the selection number
selection_num
,
long
passes back the start position of the selected region
start_offset
,
long
passes back the end position of the selected region
end_offset
)

Gets the text from the specified selection.

pack-priv static long

Returns:

a pointer to the newly allocated string containing the text from start_offset up to (but not including) end_offset
atkText_get_text
(long
a pointer to the current AtkObject
atkObject
,
long
start position
start_offset
,
long
end position, or -1 for the end of the string
end_offset
)

Gets the specified text.

pack-priv static long

Returns:

a pointer to the newly allocated string containing the text after offset bounded by the specified boundary_type
atkText_get_text_after_offset
(long
a pointer to the current AtkObject
atkObject
,
long
position
offset_value
,
long
the AtkTextBoundary
boundary_type
,
long
the start offset of the returned string
start_offset
,
long
the end_offset of the first character after the returned string
end_offset
)

Gets the specified text.

pack-priv static long

Returns:

a pointer to the newly allocated string containing the text at offset bounded by the specified boundary_type
atkText_get_text_at_offset
(long
a pointer to the current AtkObject
atkObject
,
long
position
offset_value
,
long
the AtkTextBoundary
boundary_type
,
long
the start offset of the returned string
start_offset
,
long
the end_offset of the first character after the returned string
end_offset
)

Gets the specified text.

pack-priv static long

Returns:

a pointer to the newly allocated string containing the text before offset bounded by the specified boundary_type
atkText_get_text_before_offset
(long
a pointer to the current AtkObject
atkObject
,
long
position
offset_value
,
long
the AtkTextBoundary
boundary_type
,
long
the start offset of the returned string
start_offset
,
long
the end_offset of the first character after the returned string
end_offset
)

Gets the specified text.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkText_remove_selection
(long
a pointer to the current AtkObject
atkObject
,
long
the selection number.
selection_num
)

Removes the specified selection.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkText_set_caret_offset
(long
a pointer to the current AtkObject
atkObject
,
long
the position
offset
)

Sets the caret (cursor) position to the specified offset.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkText_set_selection
(long
a pointer to the current AtkObject
atkObject
,
long
the selection number
selection_num
,
long
the new start position of the selection
start_offset
,
long
the new end position of the selection
end_offset
)

Changes the start and end offset of the specified selection.

pack-priv static long

Returns:

0, this is a void function -- the value is stored in the parameter
atkValue_get_current_value
(long
a pointer to the current AtkObject
atkObject
,
long
a pointer to a GValue that represents the current value
value
)

Gets the value of this atkObject.

pack-priv static long

Returns:

0, this is a void function -- the value is stored in the parameter
atkValue_get_maximum_value
(long
a pointer to the current AtkObject
atkObject
,
long
a pointer to a GValue that represents the current maximum value
value
)

Gets the maximum value of this atkObject.

pack-priv static long

Returns:

0, this is a void function -- the value is stored in the parameter
atkValue_get_minimum_value
(long
a pointer to the current AtkObject
atkObject
,
long
a pointer to a GValue that represents the current minimum value
value
)

Gets the minimum value of this atkObject.

pack-priv static long

Returns:

a long int representation of 1 for success, 0 otherwise
atkValue_set_current_value
(long
a pointer to the current AtkObject
atkObject
,
long
a pointer to the new GValue to be set
value
)

Sets the value of this atkObject.

pack-priv static Color
colorFromString(Display display, String rgbString)

pack-priv static AccessibleObject

Returns:

an AccessibleObject associated with the provided AtkObject pointer
getAccessibleObject
(long
a pointer to the current AtkObject
atkObject
)

Gets the AccessibleObject associated with the AtkObject handle from the Java map of AccessibleObjects.

pack-priv AccessibleObject
getChildByID(int childId)

pack-priv AccessibleObject
getChildByIndex(int childIndex)

pack-priv static Number
getGValue(long value)

pack-priv static AtkActionIface

Returns:

an AtkActionIface Java object representing the interface struct of atkObject's parent
getParentActionIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkActionIface struct with that of the parent class.

pack-priv static AtkObjectClass

Returns:

an AtkObjectClass object representing the class struct of atkObject's parent
getParentAtkObjectClass
()

Fills a Java AtkObjectClass struct with that of the parent class.

pack-priv static AtkComponentIface

Returns:

an AtkComponentIface Java object representing the interface struct of atkObject's parent
getParentComponentIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkComponentIface struct with that of the parent class.

pack-priv static AtkEditableTextIface

Returns:

an AtkEdtiableTextIface Java object representing the interface struct of atkObject's parent
getParentEditableTextIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkEditableTextIface struct with that of the parent class.

pack-priv static AtkHypertextIface

Returns:

an AtkHypertextIface Java object representing the interface struct of atkObject's parent
getParentHypertextIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkHypertextIface struct with that of the parent class.

pack-priv static AtkSelectionIface

Returns:

an AtkSelectionIface Java object representing the interface struct of atkObject's parent
getParentSelectionIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkSelectionIface struct with that of the parent class.

pack-priv static AtkTableIface

Returns:

an AtkTableIface Java object representing the interface struct of atkObject's parent
getParentTableIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkTableIface struct with that of the parent class.

pack-priv static AtkTextIface

Returns:

an AtkTextIface Java object representing the interface struct of atkObject's parent
getParentTextIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkTextIface struct with that of the parent class.

pack-priv static AtkValueIface

Returns:

an AtkValueIface Java object representing the interface struct of atkObject's parent
getParentValueIface
(long
a pointer to the current AtkObject
atkObject
)

Fills a Java AtkValueIface struct with that of the parent class.

pack-priv static String
getString(long strPtr)

pack-priv static long
pack-priv String
pack-priv static long
gObjectClass_finalize(long atkObject)

pack-priv static int
nextIndexOfChar(String string, String searchChars, int startIndex)

pack-priv static int
nextIndexOfNotChar(String string, String searchChars, int startIndex)

pack-priv static int
previousIndexOfChar(String string, String searchChars, int startIndex)

pack-priv static int
previousIndexOfNotChar(String string, String searchChars, int startIndex)

pack-priv void
pack-priv void
removeRelation(int type, Accessible target)

pack-priv void
pack-priv void
sendEvent(int event, Object eventData)

pack-priv void
sendEvent(int event, Object eventData, int childID)

pack-priv void
setFocus(int childID)

pack-priv static void
setGValue(long value, Number number)

pack-priv static int
size(Collection<?> listeners)

pack-priv void
textCaretMoved(int index)

pack-priv void
textChanged(int type, int startIndex, int length)

pack-priv void
pack-priv static int
toATKRelation(int relation)

pack-priv static long

Returns:

0
toDisplay
(long
the GdkWindow (GTK3) or GdkSurface (GTK4)
gdkResource
,
long
a pointer to an integer which represents the x coordinate
x
,
long
a pointer to an integer which represents the y coordinate
y
)

Static toDisplay implementation for accessibility purposes.

pack-priv void
pack-priv static void
windowPoint(AccessibleObject object, int[] x, int[] y)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait