Changeset 480 for trunk/src/atk/Text.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/atk/Text.d (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/atk/Text.d
r466 r480 47 47 * module aliases: 48 48 * local aliases: 49 * overrides: 49 50 */ 50 51 … … 257 258 * Returns: the text from start_offset up to, but not including end_offset. 258 259 */ 259 public char[]getText(int startOffset, int endOffset)260 public string getText(int startOffset, int endOffset) 260 261 { 261 262 // gchar* atk_text_get_text (AtkText *text, gint start_offset, gint end_offset); 262 return Str.toString(atk_text_get_text(atkText, startOffset, endOffset)) .dup;263 return Str.toString(atk_text_get_text(atkText, startOffset, endOffset)); 263 264 } 264 265 … … 310 311 * Returns: the text after offset bounded by the specified boundary_type. 311 312 */ 312 public char[]getTextAfterOffset(int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset)313 public string getTextAfterOffset(int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) 313 314 { 314 315 // gchar* atk_text_get_text_after_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); 315 return Str.toString(atk_text_get_text_after_offset(atkText, offset, boundaryType, startOffset, endOffset)) .dup;316 return Str.toString(atk_text_get_text_after_offset(atkText, offset, boundaryType, startOffset, endOffset)); 316 317 } 317 318 … … 358 359 * Returns: the text at offset bounded by the specified boundary_type. 359 360 */ 360 public char[]getTextAtOffset(int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset)361 public string getTextAtOffset(int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) 361 362 { 362 363 // gchar* atk_text_get_text_at_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); 363 return Str.toString(atk_text_get_text_at_offset(atkText, offset, boundaryType, startOffset, endOffset)) .dup;364 return Str.toString(atk_text_get_text_at_offset(atkText, offset, boundaryType, startOffset, endOffset)); 364 365 } 365 366 … … 404 405 * Returns: the text before offset bounded by the specified boundary_type. 405 406 */ 406 public char[]getTextBeforeOffset(int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset)407 public string getTextBeforeOffset(int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) 407 408 { 408 409 // gchar* atk_text_get_text_before_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); 409 return Str.toString(atk_text_get_text_before_offset(atkText, offset, boundaryType, startOffset, endOffset)) .dup;410 return Str.toString(atk_text_get_text_before_offset(atkText, offset, boundaryType, startOffset, endOffset)); 410 411 } 411 412 … … 566 567 * Returns: the selected text. 567 568 */ 568 public char[]getSelection(int selectionNum, int* startOffset, int* endOffset)569 public string getSelection(int selectionNum, int* startOffset, int* endOffset) 569 570 { 570 571 // gchar* atk_text_get_selection (AtkText *text, gint selection_num, gint *start_offset, gint *end_offset); 571 return Str.toString(atk_text_get_selection(atkText, selectionNum, startOffset, endOffset)) .dup;572 return Str.toString(atk_text_get_selection(atkText, selectionNum, startOffset, endOffset)); 572 573 } 573 574 … … 650 651 * Returns: an AtkTextAttribute associated with name 651 652 */ 652 public static AtkTextAttribute attributeRegister( char[]name)653 public static AtkTextAttribute attributeRegister(string name) 653 654 { 654 655 // AtkTextAttribute atk_text_attribute_register (const gchar *name); … … 662 663 * Returns: a string containing the name; this string should not be freed 663 664 */ 664 public static char[]attributeGetName(AtkTextAttribute attr)665 public static string attributeGetName(AtkTextAttribute attr) 665 666 { 666 667 // const gchar* atk_text_attribute_get_name (AtkTextAttribute attr); 667 return Str.toString(atk_text_attribute_get_name(attr)) .dup;668 return Str.toString(atk_text_attribute_get_name(attr)); 668 669 } 669 670 … … 674 675 * Returns: the AtkTextAttribute enumerated type corresponding to the specifiedname, or ATK_TEXT_ATTRIBUTE_INVALID if no matching text attribute is found. 675 676 */ 676 public static AtkTextAttribute attributeForName( char[]name)677 public static AtkTextAttribute attributeForName(string name) 677 678 { 678 679 // AtkTextAttribute atk_text_attribute_for_name (const gchar *name); … … 687 688 * Returns: a string containing the value; this string should not be freed;NULL is returned if there are no values maintained for the attr value. Signal DetailsThe "text-attributes-changed" signalvoid user_function (AtkText *atktext, gpointer user_data) : Run LastThe "text-attributes-changed" signal is emitted when the text attributes of the text of an object which implements AtkText changes. 688 689 */ 689 public static char[]attributeGetValue(AtkTextAttribute attr, int index)690 public static string attributeGetValue(AtkTextAttribute attr, int index) 690 691 { 691 692 // const gchar* atk_text_attribute_get_value (AtkTextAttribute attr, gint index_); 692 return Str.toString(atk_text_attribute_get_value(attr, index)) .dup;693 return Str.toString(atk_text_attribute_get_value(attr, index)); 693 694 } 694 695 }
