| AT-SPI C Bindings Reference Manual | ||||
|---|---|---|---|---|
AccessibleEditableText InterfaceAccessibleEditableText Interface — An interface which allows editable text fields to be programmatically manipulated. |
void AccessibleEditableText_ref (AccessibleEditableText *obj);void AccessibleEditableText_unref (AccessibleEditableText *obj);SPIBoolean AccessibleEditableText_copyText (AccessibleText *obj, longint startPos, longint endPos);SPIBoolean AccessibleEditableText_deleteText (AccessibleEditableText *obj, longint startPos, longint endPos);SPIBoolean AccessibleEditableText_insertText (AccessibleEditableText *obj, longint position, constchar *text, longint length);SPIBoolean AccessibleEditableText_cutText (AccessibleEditableText *obj, longint startPos, longint endPos);SPIBoolean AccessibleEditableText_pasteText (AccessibleEditableText *obj, longint position);SPIBoolean AccessibleEditableText_setTextContents (AccessibleEditableText *obj, constchar *newContents);SPIBoolean AccessibleEditableText_setAttributes (AccessibleEditableText *obj, constchar *attributes, longint startOffset, longint endOffset);
An interface implemented by objects whose text content may be (potentially or actually) directly modified by user activity. Text entry fields and text editor compose panes are examples of EditableText implementors.
void AccessibleEditableText_ref (AccessibleEditableText *obj);
Increment the reference count for an AccessibleText_ref().
|
a pointer to the |
void AccessibleEditableText_unref (AccessibleEditableText *obj);
Decrement the reference count for an AccessibleText_unref().
|
a pointer to the |
SPIBoolean AccessibleEditableText_copyText (AccessibleText *obj, longint startPos, longint endPos);
Copy text from an
see: AccessibleEditableText_pasteText
|
a pointer to the |
|
an integer indicating the starting character offset of the text to copy. |
|
an integer indicating the offset of the first character past the end of the text section to be copied. |
Returns : |
|
SPIBoolean AccessibleEditableText_deleteText (AccessibleEditableText *obj, longint startPos, longint endPos);
Delete text from an
see: AccessibleEditableText_cutText
|
a pointer to the |
|
an integer indicating the starting character offset of the text to delete. |
|
an integer indicating the offset of the first character past the end of the text section to be deleted. |
Returns : |
|
SPIBoolean AccessibleEditableText_insertText (AccessibleEditableText *obj, longint position, constchar *text, longint length);
Insert text into an position may not be the
same as the resulting byte offset, since the text is in a
variable-width encoding.
|
a pointer to the |
|
an integer indicating the character offset at which to insert the new text. |
|
a char* pointer to the text to insert, in UTF-8 encoding. |
|
(frankly I'm not sure this parameter should be here) |
Returns : |
|
SPIBoolean AccessibleEditableText_cutText (AccessibleEditableText *obj, longint startPos, longint endPos);
Delete text from an
see: AccessibleEditableText_pasteText
|
a pointer to the |
|
an integer indicating the starting character offset of the text to cut. |
|
an integer indicating the offset of the first character past the end of the text section to be cut. |
Returns : |
|
SPIBoolean AccessibleEditableText_pasteText (AccessibleEditableText *obj, longint position);
Insert text from the clipboard into an position may not be the
same as the resulting byte offset, since the text is in a
variable-width encoding.
|
a pointer to the |
|
an integer indicating the character offset at which to insert the new text. |
Returns : |
|
SPIBoolean AccessibleEditableText_setTextContents (AccessibleEditableText *obj, constchar *newContents);
Replace the entire text contents of an
|
a pointer to the |
|
a character string, encoded in UTF-8, which is to
become the new text contents of the |
Returns : |
|
SPIBoolean AccessibleEditableText_setAttributes (AccessibleEditableText *obj, constchar *attributes, longint startOffset, longint endOffset);
Set the attributes applied to a range of text from an
|
a pointer to the |
|
a character string indicating the attributes to apply to the range, delimited by ':'. |
|
a |
|
a |
Returns : |
|