| AT-SPI C Bindings Reference Manual | ||||
|---|---|---|---|---|
void AccessibleTable_ref (AccessibleTable *obj);void AccessibleTable_unref (AccessibleTable *obj); Accessible * AccessibleTable_getAccessibleAt (AccessibleTable *obj, longint row, longint column); Accessible * AccessibleTable_getCaption (AccessibleTable *obj);long AccessibleTable_getColumnAtIndex (AccessibleTable *obj, longint index);char * AccessibleTable_getColumnDescription (AccessibleTable *obj, longint column);long AccessibleTable_getColumnExtentAt (AccessibleTable *obj, longint row, longint column); Accessible * AccessibleTable_getColumnHeader (AccessibleTable *obj, longint column);long AccessibleTable_getIndexAt (AccessibleTable *obj, longint row, longint column);long AccessibleTable_getNColumns (AccessibleTable *obj);long AccessibleTable_getNRows (AccessibleTable *obj);long AccessibleTable_getNSelectedColumns (AccessibleTable *obj);long AccessibleTable_getNSelectedRows (AccessibleTable *obj);SPIBoolean AccessibleTable_getRowColumnExtentsAtIndex (AccessibleTable *obj, longint index, longint *row, longint *col, longint *row_extents, longint *col_extents, longint *is_selected);long AccessibleTable_getRowAtIndex (AccessibleTable *obj, longint index);char * AccessibleTable_getRowDescription (AccessibleTable *obj, longint row);long AccessibleTable_getRowExtentAt (AccessibleTable *obj, longint row, longint column); Accessible * AccessibleTable_getRowHeader (AccessibleTable *obj, longint row);long AccessibleTable_getSelectedRows (AccessibleTable *obj, longint **selectedRows);long AccessibleTable_getSelectedColumns (AccessibleTable *obj, longint **selectedColumns); Accessible * AccessibleTable_getSummary (AccessibleTable *obj);SPIBoolean AccessibleTable_isColumnSelected (AccessibleTable *obj, longint column);SPIBoolean AccessibleTable_isRowSelected (AccessibleTable *obj, longint row);SPIBoolean AccessibleTable_isSelected (AccessibleTable *obj, longint row, longint column);SPIBoolean AccessibleTable_addColumnSelection (AccessibleTable *obj, longint column);SPIBoolean AccessibleTable_addRowSelection (AccessibleTable *obj, longint row);SPIBoolean AccessibleTable_removeColumnSelection (AccessibleTable *obj, longint column);SPIBoolean AccessibleTable_removeRowSelection (AccessibleTable *obj, longint row);
void AccessibleTable_ref (AccessibleTable *obj);
Increment the reference count for an
|
a pointer to the |
void AccessibleTable_unref (AccessibleTable *obj);
Decrement the reference count for an
|
a pointer to the |
Accessible * AccessibleTable_getAccessibleAt (AccessibleTable *obj, longint row, longint column);
Get the table cell at the specified row and column indices.
To get the accessible object at a particular (x, y) screen coordinate,
use #Accessible_getAccessibleAtPoint()
|
a pointer to the |
|
the specified table row, zero-indexed. |
|
the specified table column, zero-indexed. |
Returns : |
an Accessible object representing the specified table cell. |
Accessible * AccessibleTable_getCaption (AccessibleTable *obj);
Get an accessible representation of the caption for an
|
a pointer to the |
Returns : |
an Accessible object that serves as the table's caption. |
long AccessibleTable_getColumnAtIndex (AccessibleTable *obj, longint index);
Get the table column index occupied by the child at a particular 1-D child index.
see #AccessibleTable_getIndexAt(), #AccessibleTable_getRowAtIndex()
|
a pointer to the |
|
the specified child index, zero-indexed. |
Returns : |
a long integer indicating the first column spanned by the child of a
table, at the specified 1-D (zero-offset) index.
|
char * AccessibleTable_getColumnDescription (AccessibleTable *obj, longint column);
Get a text description of a particular table column. This differs from AccessibleTable_getColumnHeader, which returns an Accessible.
|
a pointer to the |
|
the specified table column, zero-indexed. |
Returns : |
a UTF-8 string describing the specified table column, if available. |
long AccessibleTable_getColumnExtentAt (AccessibleTable *obj, longint row, longint column);
Get the number of columns spanned by the table cell at the specific row and column. (some tables can have cells which span multiple rows and/or columns).
|
a pointer to the |
|
the specified table row, zero-indexed. |
|
the specified table column, zero-indexed. |
Returns : |
a long integer indicating the number of columns spanned by the specified cell. |
Accessible * AccessibleTable_getColumnHeader (AccessibleTable *obj, longint column);
Get the header associated with a table column, if available. This differs from AccessibleTable_getColumnDescription, which returns a string.
|
a pointer to the |
|
the specified table column, zero-indexed. |
Returns : |
a Accessible representatin of the specified table column, if available. |
long AccessibleTable_getIndexAt (AccessibleTable *obj, longint row, longint column);
Get the 1-D child index corresponding to the specified 2-D row and column indices.
To get the accessible object at a particular (x, y) screen coordinate,
use #Accessible_getAccessibleAtPoint()see #AccessibleTable_getRowAtIndex(), #AccessibleTable_getColumnAtIndex()
|
a pointer to the |
|
the specified table row, zero-indexed. |
|
the specified table column, zero-indexed. |
Returns : |
a long integer which serves as the index of a specified cell in the
table, in a form usable by #Accessible_getChildAtIndex().
|
long AccessibleTable_getNColumns (AccessibleTable *obj);
Get the number of columns in an
|
a pointer to the |
Returns : |
a |
long AccessibleTable_getNRows (AccessibleTable *obj);
Get the number of rows in an
|
a pointer to the |
Returns : |
a |
long AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
Query a table to find out how many columns are currently selected. Not all tables support column selection.
|
a pointer to the |
Returns : |
a long integer indicating the number of columns currently selected. |
long AccessibleTable_getNSelectedRows (AccessibleTable *obj);
Query a table to find out how many rows are currently selected. Not all tables support row selection.
|
a pointer to the |
Returns : |
a long integer indicating the number of rows currently selected. |
SPIBoolean AccessibleTable_getRowColumnExtentsAtIndex (AccessibleTable *obj, longint index, longint *row, longint *col, longint *row_extents, longint *col_extents, longint *is_selected);
Given a child index, determine the row and column indices and extents, and whether the cell is currently selected. If the child at \c index is not a cell (for instance, if it is a summary, caption, etc.), \c False is returned.
Example: If the Table child at index '6' extends across columns 5 and 6 of row 2 of a Table instance, and is currently selected, then
retval = table::getRowColumnExtentsAtIndex (6, row, col, row_extents, col_extents, is_selected);
will return True, and after the call row, col, row_extents, col_extents, and \c is_selected will contain 2, 5, 1, 2, and True, respectively.
|
a pointer to the |
|
the index of the Table child whose row/column extents are requested. |
|
back-filled with the first table row associated with the cell with child index \c index. |
|
back-filled with the first table column associated with the cell with child index \c index. |
|
back-filled with the number of table rows across which child \c i extends. |
|
back-filled with the number of table columns across which child \c i extends. |
|
a boolean which is back-filled with \c True if the child at index \c i corresponds to a selected table cell, \c False otherwise. |
Returns : |
\c True if the index is associated with a valid table cell, \c False if the index does not correspond to a cell. If \c False is returned, the values of the out parameters are undefined. Since AT-SPI 1.7.0 |
long AccessibleTable_getRowAtIndex (AccessibleTable *obj, longint index);
Get the table row index occupied by the child at a particular 1-D child index.
see #AccessibleTable_getIndexAt(), #AccessibleTable_getColumnAtIndex()
|
a pointer to the |
|
the specified child index, zero-indexed. |
Returns : |
a long integer indicating the first row spanned by the child of a
table, at the specified 1-D (zero-offset) index.
|
char * AccessibleTable_getRowDescription (AccessibleTable *obj, longint row);
Get a text description of a particular table row. This differs from AccessibleTable_getRowHeader, which returns an Accessible.
|
a pointer to the |
|
the specified table row, zero-indexed. |
Returns : |
a UTF-8 string describing the specified table row, if available. |
long AccessibleTable_getRowExtentAt (AccessibleTable *obj, longint row, longint column);
Get the number of rows spanned by the table cell at the specific row and column. (some tables can have cells which span multiple rows and/or columns).
|
a pointer to the |
|
the specified table row, zero-indexed. |
|
the specified table column, zero-indexed. |
Returns : |
a long integer indicating the number of rows spanned by the specified cell. |
Accessible * AccessibleTable_getRowHeader (AccessibleTable *obj, longint row);
Get the header associated with a table row, if available. This differs from AccessibleTable_getRowDescription, which returns a string.
|
a pointer to the |
|
the specified table row, zero-indexed. |
Returns : |
a Accessible representatin of the specified table row, if available. |
long AccessibleTable_getSelectedRows (AccessibleTable *obj, longint **selectedRows);
Query a table for a list of indices of rows which are currently selected.
|
a pointer to the |
|
a doubly indirected pointer which will be set to the address of an array of long integers, specifying which rows are currently selected. |
Returns : |
a long integer indicating the length of the array returned in selectedRows.
|
long AccessibleTable_getSelectedColumns (AccessibleTable *obj, longint **selectedColumns);
Query a table for a list of indices of columns which are currently selected. Not all tables support column selection.
|
a pointer to the |
|
a doubly indirected pointer which will be set to the address of an array of long integers, specifying which columns are currently selected. |
Returns : |
a long integer indicating the length of the array returned in selectedColumns.
|
Accessible * AccessibleTable_getSummary (AccessibleTable *obj);
Get an accessible object which summarizes the contents of an
|
a pointer to the |
Returns : |
an Accessible object that serves as the table's summary (often a
reduced |
SPIBoolean AccessibleTable_isColumnSelected (AccessibleTable *obj, longint column);
Determine whether specified table column is selected. Not all tables support column selection.
|
a pointer to the |
|
the zero-indexed column number of the column being queried. |
Returns : |
|
SPIBoolean AccessibleTable_isRowSelected (AccessibleTable *obj, longint row);
Determine whether a table row is selected. Not all tables support row selection.
|
a pointer to the |
|
the zero-indexed row number of the row being queried. |
Returns : |
|
SPIBoolean AccessibleTable_isSelected (AccessibleTable *obj, longint row, longint column);
Determine whether the cell at a specific row and column is selected.
|
a pointer to the |
|
the zero-indexed row of the cell being queried. |
|
the zero-indexed column of the cell being queried. |
Returns : |
|
SPIBoolean AccessibleTable_addColumnSelection (AccessibleTable *obj, longint column);
Select the specified column, adding it to the current column selection. Not all tables support column selection.
|
a pointer to the |
|
the zero-indexed column number of the column being selected. |
Returns : |
|
SPIBoolean AccessibleTable_addRowSelection (AccessibleTable *obj, longint row);
Select the specified row, adding it to the current row selection. Not all tables support row selection.
|
a pointer to the |
|
the zero-indexed row number of the row being selected. |
Returns : |
|
SPIBoolean AccessibleTable_removeColumnSelection (AccessibleTable *obj, longint column);
De-select the specified column, removing it to the current column selection. Not all tables support column selection.
|
a pointer to the |
|
the zero-indexed column number of the column being de-selected. |
Returns : |
|
SPIBoolean AccessibleTable_removeRowSelection (AccessibleTable *obj, longint row);
De-select the specified row, removing it to the current row selection. Not all tables support row selection.
|
a pointer to the |
|
the zero-indexed number of the row being deselected. |
Returns : |
|