1 #include <cspi/spi-private.h>
4 * AccessibleEditableText_ref:
5 * @obj: a pointer to the #AccessibleEditableText object on which to operate.
7 * Increment the reference count for an #AccessibleEditableText object.
8 * Since AccessibleEditableText is derived from AccessibleText,
9 * this is the same as AccessibleText_ref().
12 AccessibleEditableText_ref (AccessibleEditableText *obj)
14 cspi_object_ref (obj);
18 * AccessibleEditableText_unref:
19 * @obj: a pointer to the #AccessibleEditableText object on which to operate.
21 * Decrement the reference count for an #AccessibleEdiitableText object.
22 * Since AccessibleEditableText is derived from AccessibleText,
23 * this is the same as AccessibleText_unref().
26 AccessibleEditableText_unref (AccessibleEditableText *obj)
28 cspi_object_unref (obj);
32 * AccessibleEditableText_setAttributes:
33 * @obj: a pointer to the #AccessibleEditableText object to modify.
34 * @attributes: a character string indicating the attributes to apply to the range,
36 * @startOffset: a #long indicating the start of the desired text range.
37 * @endOffset: a #long indicating the first character past the desired range.
39 * Set the attributes applied to a range of text from an #AccessibleEditableText
40 * object, and the bounds of the range.
42 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
45 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
46 const char *attributes,
52 cspi_return_val_if_fail (obj != NULL, FALSE);
55 Accessibility_EditableText_setAttributes (CSPI_OBJREF (obj),
56 (CORBA_char *) attributes,
57 (CORBA_long) startPos,
58 (CORBA_long) endPos, cspi_ev ());
60 cspi_return_val_if_ev ("setAttributes", FALSE);
66 * AccessibleEditableText_setTextContents:
67 * @obj: a pointer to the #AccessibleEditableText object to modify.
68 * @newContents: a character string, encoded in UTF-8, which is to
69 * become the new text contents of the #AccessibleEditableText object.
71 * Replace the entire text contents of an #AccessibleEditableText object.
73 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
76 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
77 const char *newContents)
79 cspi_return_val_if_fail (obj != NULL, FALSE);
81 Accessibility_EditableText_setTextContents (CSPI_OBJREF (obj),
82 (CORBA_char *) newContents, cspi_ev ());
84 cspi_return_val_if_ev ("setTextContents", FALSE);
90 * AccessibleEditableText_insertText:
91 * @obj: a pointer to the #AccessibleEditableText object to modify.
92 * @position: an integer indicating the character offset at which to insert
94 * @text: a char* pointer to the text to insert, in UTF-8 encoding.
95 * @length: (frankly I'm not sure this parameter should be here)
97 * Insert text into an #AccessibleEditableText object.
98 * As with all character offsets, the specified @position may not be the
99 * same as the resulting byte offset, since the text is in a
100 * variable-width encoding.
102 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
105 AccessibleEditableText_insertText (AccessibleEditableText *obj,
110 cspi_return_val_if_fail (obj != NULL, FALSE);
112 Accessibility_EditableText_insertText (CSPI_OBJREF (obj),
113 (CORBA_long) position, (const CORBA_char *) text,
114 (CORBA_long) length, cspi_ev ());
116 cspi_return_val_if_ev ("insertText", FALSE);
122 * AccessibleEditableText_copyText:
123 * @obj: a pointer to the #AccessibleEditableText object to modify.
124 * @startPos: an integer indicating the starting character offset
125 * of the text to copy.
126 * @endPos: an integer indicating the offset of the first character
127 * past the end of the text section to be copied.
129 * Copy text from an #AccessibleEditableText object into the clipboard.
131 * @see: AccessibleEditableText_pasteText
133 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
136 AccessibleEditableText_copyText (AccessibleText *obj,
140 cspi_return_val_if_fail (obj != NULL, FALSE);
142 Accessibility_EditableText_copyText (
143 CSPI_OBJREF (obj), (CORBA_long) startPos,
144 (CORBA_long) endPos, cspi_ev ());
146 cspi_return_val_if_ev ("copyText", FALSE);
152 * AccessibleEditableText_cutText:
153 * @obj: a pointer to the #AccessibleEditableText object to modify.
154 * @startPos: an integer indicating the starting character offset
155 * of the text to cut.
156 * @endPos: an integer indicating the offset of the first character
157 * past the end of the text section to be cut.
159 * Delete text from an #AccessibleEditableText object, copying the
160 * excised portion into the clipboard.
162 * @see: AccessibleEditableText_pasteText
164 * Returns: #TRUE if operation was successful, #FALSE otherwise.
167 AccessibleEditableText_cutText (AccessibleEditableText *obj,
171 cspi_return_val_if_fail (obj != NULL, FALSE);
173 Accessibility_EditableText_cutText (
175 (CORBA_long) startPos, (CORBA_long) endPos, cspi_ev ());
177 cspi_return_val_if_ev ("cutText", FALSE);
183 * AccessibleEditableText_deleteText:
184 * @obj: a pointer to the #AccessibleEditableText object to modify.
185 * @startPos: an integer indicating the starting character offset
186 * of the text to delete.
187 * @endPos: an integer indicating the offset of the first character
188 * past the end of the text section to be deleted.
190 * Delete text from an #AccessibleEditableText object, without copying the
191 * excised portion into the clipboard.
193 * @see: AccessibleEditableText_cutText
195 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
198 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
202 cspi_return_val_if_fail (obj != NULL, FALSE);
204 Accessibility_EditableText_deleteText (
206 (CORBA_long) startPos, (CORBA_long) endPos, cspi_ev ());
208 cspi_return_val_if_ev ("deleteText", FALSE);
214 * AccessibleEditableText_pasteText:
215 * @obj: a pointer to the #AccessibleEditableText object to modify.
216 * @position: an integer indicating the character offset at which to insert
219 * Insert text from the clipboard into an #AccessibleEditableText object.
220 * As with all character offsets, the specified @position may not be the
221 * same as the resulting byte offset, since the text is in a
222 * variable-width encoding.
224 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
227 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
230 cspi_return_val_if_fail (obj != NULL, FALSE);
232 Accessibility_EditableText_pasteText (
233 CSPI_OBJREF (obj), (CORBA_long) position, cspi_ev ());
235 cspi_return_val_if_ev ("pasteText", FALSE);