Changeset 480 for trunk/src/atk/ObjectAtk.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/atk/ObjectAtk.d (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/atk/ObjectAtk.d
r466 r480 54 54 * module aliases: 55 55 * local aliases: 56 * overrides: 56 57 */ 57 58 … … 106 107 107 108 /** the main Gtk struct as a void* */ 108 protected void* getStruct()109 protected override void* getStruct() 109 110 { 110 111 return cast(void*)atkObject; … … 260 261 } 261 262 262 void delegate( char[], gboolean, ObjectAtk)[] onStateChangeListeners;263 void delegate(string, gboolean, ObjectAtk)[] onStateChangeListeners; 263 264 /** 264 265 * The "state-change" signal is emitted when an object's state changes. 265 266 * The detail value identifies the state type which has changed. 266 267 */ 267 void addOnStateChange(void delegate( char[], gboolean, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)268 void addOnStateChange(void delegate(string, gboolean, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) 268 269 { 269 270 if ( !("state-change" in connectedSignals) ) … … 284 285 bool consumed = false; 285 286 286 foreach ( void delegate( char[], gboolean, ObjectAtk) dlg ; objectAtk.onStateChangeListeners )287 foreach ( void delegate(string, gboolean, ObjectAtk) dlg ; objectAtk.onStateChangeListeners ) 287 288 { 288 289 dlg(Str.toString(arg1), arg2, objectAtk); … … 334 335 * Returns: an AtkRole for the new role. 335 336 */ 336 public static AtkRole roleRegister( char[]name)337 public static AtkRole roleRegister(string name) 337 338 { 338 339 // AtkRole atk_role_register (const gchar *name); … … 364 365 * Returns: a character string representing the accessible name of the object. 365 366 */ 366 public char[]getName()367 public string getName() 367 368 { 368 369 // const gchar* atk_object_get_name (AtkObject *accessible); 369 return Str.toString(atk_object_get_name(atkObject)) .dup;370 return Str.toString(atk_object_get_name(atkObject)); 370 371 } 371 372 … … 374 375 * Returns: a character string representing the accessible descriptionof the accessible. 375 376 */ 376 public char[]getDescription()377 public string getDescription() 377 378 { 378 379 // const gchar* atk_object_get_description (AtkObject *accessible); 379 return Str.toString(atk_object_get_description(atkObject)) .dup;380 return Str.toString(atk_object_get_description(atkObject)); 380 381 } 381 382 … … 510 511 * name = a character string to be set as the accessible name 511 512 */ 512 public void setName( char[]name)513 public void setName(string name) 513 514 { 514 515 // void atk_object_set_name (AtkObject *accessible, const gchar *name); … … 521 522 * description = a character string to be set as the accessible description 522 523 */ 523 public void setDescription( char[]description)524 public void setDescription(string description) 524 525 { 525 526 // void atk_object_set_description (AtkObject *accessible, const gchar *description); … … 643 644 * Returns: the string describing the AtkRole 644 645 */ 645 public static char[]roleGetName(AtkRole role)646 public static string roleGetName(AtkRole role) 646 647 { 647 648 // const gchar* atk_role_get_name (AtkRole role); 648 return Str.toString(atk_role_get_name(role)) .dup;649 return Str.toString(atk_role_get_name(role)); 649 650 } 650 651 … … 655 656 * Returns: the localized string describing the AtkRole 656 657 */ 657 public static char[]roleGetLocalizedName(AtkRole role)658 public static string roleGetLocalizedName(AtkRole role) 658 659 { 659 660 // const gchar* atk_role_get_localized_name (AtkRole role); 660 return Str.toString(atk_role_get_localized_name(role)) .dup;661 return Str.toString(atk_role_get_localized_name(role)); 661 662 } 662 663 … … 667 668 * Returns: the AtkRole enumerated type corresponding to the specifiedname, or ATK_ROLE_INVALID if no matching role is found. 668 669 */ 669 public static AtkRole roleForName( char[]name)670 public static AtkRole roleForName(string name) 670 671 { 671 672 // AtkRole atk_role_for_name (const gchar *name);
