String methods may need to return multibyte-encoded strings,
since some locales can’t be encoded using 16-bit chars.
So the methods below might return UTF-16 strings, or they could
return “string” values which are UTF-8.
It would be better to return an unsigned long here,
to allow unicode chars > 16 bits
Get the accessible start/end offsets around the given offset,
return the text attributes for this range of text.
includeDefAttrs | [in] points whether text attributes applied to the entire accessible should be included or not. |
offset | [in] text offset |
rangeStartOffset | [out] start offset of the range of text |
rangeEndOffset | [out] end offset of the range of text |
Returns the bounding box of the specified position.
The virtual character after the last character of the represented text,
i.e. the one at position length is a special case. It represents the
current input position and will therefore typically be queried by AT more
often than other positions. Because it does not represent an existing
character its bounding box is defined in relation to preceding characters.
It should be roughly equivalent to the bounding box of some character when
inserted at the end of the text. Its height typically being the maximal
height of all the characters in the text or the height of the preceding
character, its width being at least one pixel so that the bounding box is
not degenerate.
offset | - Index of the character for which to return its bounding box. The valid range is 0..length. |
x | - X coordinate of the bounding box of the referenced character. |
y | - Y coordinate of the bounding box of the referenced character. |
width | - Width of the bounding box of the referenced character. |
height | - Height of the bounding box of the referenced character. |
coordType | - Specifies if the coordinates are relative to the screen or to the parent window (see constants declared in nsIAccessibleCoordinateType). |
Get the text offset at the given point, or return -1
if no character exists at that point
x | - The position's x value for which to look up the index of the character that is rendered on to the display at that point. |
y | - The position's y value for which to look up the index of the character that is rendered on to the display at that point. |
coordType | - Screen coordinates or window coordinates (see constants declared in nsIAccessibleCoordinateType). |
offset - Index of the character under the given point or -1 if the point is invalid or there is no character under the point. |
Set the bounds for the given selection range
Makes a specific part of string visible on screen.
startIndex | 0-based character offset |
endIndex | 0-based character offset - the offset of the character just past the last character of the string |
scrollType | defines how to scroll (see nsIAccessibleScrollType for available constants) |
Moves the top left of a substring to a specified location.
startIndex | 0-based character offset |
endIndex | 0-based character offset - the offset of the character just past the last character of the string |
coordinateType | specifies the coordinates origin (for available constants refer to nsIAccessibleCoordinateType) |
x | defines the x coordinate |
y | defines the y coordinate |
Return a range containing the given accessible.
Return a range containing an accessible at the given point.
The current current caret offset.
If set < 0 then caret will be placed at the end of the text
Return the text attributes that apply to the entire accessible.
Return a range that encloses this text control or otherwise the document
this text accessible belongs to.
Return an array of disjoint ranges for selected text within the text control
or otherwise the document this accessible belongs to.
Return an array of disjoint ranges of visible text within the text control
or otherwise the document this accessible belongs to.