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)
81 cspi_return_val_if_fail (obj != NULL, FALSE);
83 retval = Accessibility_EditableText_setTextContents (CSPI_OBJREF (obj),
84 (CORBA_char *) newContents, cspi_ev ());
86 cspi_return_val_if_ev ("setTextContents", FALSE);
92 * AccessibleEditableText_insertText:
93 * @obj: a pointer to the #AccessibleEditableText object to modify.
94 * @position: an integer indicating the character offset at which to insert
96 * @text: a char* pointer to the text to insert, in UTF-8 encoding.
97 * @length: (frankly I'm not sure this parameter should be here)
99 * Insert text into an #AccessibleEditableText object.
100 * As with all character offsets, the specified @position may not be the
101 * same as the resulting byte offset, since the text is in a
102 * variable-width encoding.
104 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
107 AccessibleEditableText_insertText (AccessibleEditableText *obj,
114 cspi_return_val_if_fail (obj != NULL, FALSE);
116 retval = Accessibility_EditableText_insertText (CSPI_OBJREF (obj),
117 (CORBA_long) position, (const CORBA_char *) text,
118 (CORBA_long) length, cspi_ev ());
120 cspi_return_val_if_ev ("insertText", FALSE);
126 * AccessibleEditableText_copyText:
127 * @obj: a pointer to the #AccessibleEditableText object to modify.
128 * @startPos: an integer indicating the starting character offset
129 * of the text to copy.
130 * @endPos: an integer indicating the offset of the first character
131 * past the end of the text section to be copied.
133 * Copy text from an #AccessibleEditableText object into the clipboard.
135 * @see: AccessibleEditableText_pasteText
137 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
140 AccessibleEditableText_copyText (AccessibleText *obj,
144 cspi_return_val_if_fail (obj != NULL, FALSE);
146 Accessibility_EditableText_copyText (
147 CSPI_OBJREF (obj), (CORBA_long) startPos,
148 (CORBA_long) endPos, cspi_ev ());
150 cspi_return_val_if_ev ("copyText", FALSE);
156 * AccessibleEditableText_cutText:
157 * @obj: a pointer to the #AccessibleEditableText object to modify.
158 * @startPos: an integer indicating the starting character offset
159 * of the text to cut.
160 * @endPos: an integer indicating the offset of the first character
161 * past the end of the text section to be cut.
163 * Delete text from an #AccessibleEditableText object, copying the
164 * excised portion into the clipboard.
166 * @see: AccessibleEditableText_pasteText
168 * Returns: #TRUE if operation was successful, #FALSE otherwise.
171 AccessibleEditableText_cutText (AccessibleEditableText *obj,
177 cspi_return_val_if_fail (obj != NULL, FALSE);
179 retval = Accessibility_EditableText_cutText (
181 (CORBA_long) startPos, (CORBA_long) endPos, cspi_ev ());
183 cspi_return_val_if_ev ("cutText", FALSE);
189 * AccessibleEditableText_deleteText:
190 * @obj: a pointer to the #AccessibleEditableText object to modify.
191 * @startPos: an integer indicating the starting character offset
192 * of the text to delete.
193 * @endPos: an integer indicating the offset of the first character
194 * past the end of the text section to be deleted.
196 * Delete text from an #AccessibleEditableText object, without copying the
197 * excised portion into the clipboard.
199 * @see: AccessibleEditableText_cutText
201 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
204 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
210 cspi_return_val_if_fail (obj != NULL, FALSE);
212 retval = Accessibility_EditableText_deleteText (
214 (CORBA_long) startPos, (CORBA_long) endPos, cspi_ev ());
216 cspi_return_val_if_ev ("deleteText", FALSE);
222 * AccessibleEditableText_pasteText:
223 * @obj: a pointer to the #AccessibleEditableText object to modify.
224 * @position: an integer indicating the character offset at which to insert
227 * Insert text from the clipboard into an #AccessibleEditableText object.
228 * As with all character offsets, the specified @position may not be the
229 * same as the resulting byte offset, since the text is in a
230 * variable-width encoding.
232 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
235 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
240 cspi_return_val_if_fail (obj != NULL, FALSE);
242 retval = Accessibility_EditableText_pasteText (
243 CSPI_OBJREF (obj), (CORBA_long) position, cspi_ev ());
245 cspi_return_val_if_ev ("pasteText", FALSE);