NSInputServer.inc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. { Parsed from Appkit.framework NSInputServer.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSINPUTSERVER_PAS_T}
  4. {$define NSINPUTSERVER_PAS_T}
  5. {$endif}
  6. {$endif}
  7. {$ifdef RECORDS}
  8. {$ifndef NSINPUTSERVER_PAS_R}
  9. {$define NSINPUTSERVER_PAS_R}
  10. {$endif}
  11. {$endif}
  12. {$ifdef FUNCTIONS}
  13. {$ifndef NSINPUTSERVER_PAS_F}
  14. {$define NSINPUTSERVER_PAS_F}
  15. {$endif}
  16. {$endif}
  17. {$ifdef EXTERNAL_SYMBOLS}
  18. {$ifndef NSINPUTSERVER_PAS_S}
  19. {$define NSINPUTSERVER_PAS_S}
  20. {$endif}
  21. {$endif}
  22. {$ifdef FORWARD}
  23. NSInputServiceProviderProtocol = objcprotocol;
  24. NSInputServerMouseTrackerProtocol = objcprotocol;
  25. NSInputServer = objcclass;
  26. NSInputServerPointer = ^NSInputServer;
  27. NSInputServerPtr = NSInputServerPointer;
  28. {$endif}
  29. {$ifdef CLASSES}
  30. {$ifndef NSINPUTSERVER_PAS_C}
  31. {$define NSINPUTSERVER_PAS_C}
  32. { NSInputServer }
  33. NSInputServer = objcclass external (NSObject, NSInputServiceProviderProtocol, NSInputServerMouseTrackerProtocol)
  34. private
  35. _name: NSString;
  36. _delegate: id;
  37. public
  38. { Adopted Protocols }
  39. procedure insertText_client(aString: id; sender: id);
  40. procedure doCommandBySelector_client(aSelector: SEL; sender: id);
  41. procedure markedTextAbandoned(sender: id);
  42. procedure markedTextSelectionChanged_client(newSel: NSRange; sender: id);
  43. procedure terminate(sender: id);
  44. function canBeDisabled: Boolean;
  45. function wantsToInterpretAllKeystrokes: Boolean;
  46. function wantsToHandleMouseEvents: Boolean;
  47. function wantsToDelayTextChangeNotifications: Boolean;
  48. procedure inputClientBecomeActive(sender: id);
  49. procedure inputClientResignActive(sender: id);
  50. procedure inputClientEnabled(sender: id);
  51. procedure inputClientDisabled(sender: id);
  52. procedure activeConversationWillChange_fromOldConversation(sender: id; oldConversation: NSInteger);
  53. procedure activeConversationChanged_toNewConversation(sender: id; newConversation: NSInteger);
  54. function mouseDownOnCharacterIndex_atCoordinate_withModifier_client(theIndex: NSUInteger; thePoint: NSPoint; theFlags: NSUInteger; sender: id): Boolean;
  55. function mouseDraggedOnCharacterIndex_atCoordinate_withModifier_client(theIndex: NSUInteger; thePoint: NSPoint; theFlags: NSUInteger; sender: id): Boolean;
  56. procedure mouseUpOnCharacterIndex_atCoordinate_withModifier_client(theIndex: NSUInteger; thePoint: NSPoint; theFlags: NSUInteger; sender: id);
  57. end;
  58. {$endif}
  59. {$endif}
  60. {$ifdef PROTOCOLS}
  61. {$ifndef NSINPUTSERVER_PAS_P}
  62. {$define NSINPUTSERVER_PAS_P}
  63. { NSInputServiceProvider Protocol }
  64. NSInputServiceProviderProtocol = objcprotocol external name 'NSInputServiceProvider'
  65. procedure insertText_client(aString: id; sender: id); message 'insertText:client:'; deprecated 'in Mac OS X 10.6 and later';
  66. procedure doCommandBySelector_client(aSelector: SEL; sender: id); message 'doCommandBySelector:client:'; deprecated 'in Mac OS X 10.6 and later';
  67. procedure markedTextAbandoned(sender: id); message 'markedTextAbandoned:'; deprecated 'in Mac OS X 10.6 and later';
  68. procedure markedTextSelectionChanged_client(newSel: NSRange; sender: id); message 'markedTextSelectionChanged:client:'; deprecated 'in Mac OS X 10.6 and later';
  69. procedure terminate(sender: id); message 'terminate:'; deprecated 'in Mac OS X 10.6 and later';
  70. function canBeDisabled: Boolean; message 'canBeDisabled'; deprecated 'in Mac OS X 10.6 and later';
  71. function wantsToInterpretAllKeystrokes: Boolean; message 'wantsToInterpretAllKeystrokes'; deprecated 'in Mac OS X 10.6 and later';
  72. function wantsToHandleMouseEvents: Boolean; message 'wantsToHandleMouseEvents'; deprecated 'in Mac OS X 10.6 and later';
  73. function wantsToDelayTextChangeNotifications: Boolean; message 'wantsToDelayTextChangeNotifications'; deprecated 'in Mac OS X 10.6 and later';
  74. procedure inputClientBecomeActive(sender: id); message 'inputClientBecomeActive:'; deprecated 'in Mac OS X 10.6 and later';
  75. procedure inputClientResignActive(sender: id); message 'inputClientResignActive:'; deprecated 'in Mac OS X 10.6 and later';
  76. procedure inputClientEnabled(sender: id); message 'inputClientEnabled:'; deprecated 'in Mac OS X 10.6 and later';
  77. procedure inputClientDisabled(sender: id); message 'inputClientDisabled:'; deprecated 'in Mac OS X 10.6 and later';
  78. procedure activeConversationWillChange_fromOldConversation(sender: id; oldConversation: NSInteger); message 'activeConversationWillChange:fromOldConversation:'; deprecated 'in Mac OS X 10.6 and later';
  79. procedure activeConversationChanged_toNewConversation(sender: id; newConversation: NSInteger); message 'activeConversationChanged:toNewConversation:'; deprecated 'in Mac OS X 10.6 and later';
  80. end;
  81. { NSInputServerMouseTracker Protocol }
  82. NSInputServerMouseTrackerProtocol = objcprotocol external name 'NSInputServerMouseTracker'
  83. function mouseDownOnCharacterIndex_atCoordinate_withModifier_client(theIndex: NSUInteger; thePoint: NSPoint; theFlags: NSUInteger; sender: id): Boolean; message 'mouseDownOnCharacterIndex:atCoordinate:withModifier:client:'; deprecated 'in Mac OS X 10.6 and later';
  84. function mouseDraggedOnCharacterIndex_atCoordinate_withModifier_client(theIndex: NSUInteger; thePoint: NSPoint; theFlags: NSUInteger; sender: id): Boolean; message 'mouseDraggedOnCharacterIndex:atCoordinate:withModifier:client:'; deprecated 'in Mac OS X 10.6 and later';
  85. procedure mouseUpOnCharacterIndex_atCoordinate_withModifier_client(theIndex: NSUInteger; thePoint: NSPoint; theFlags: NSUInteger; sender: id); message 'mouseUpOnCharacterIndex:atCoordinate:withModifier:client:'; deprecated 'in Mac OS X 10.6 and later';
  86. end;
  87. {$endif}
  88. {$endif}