NSTextInputContext.inc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. { Parsed from AppKit.framework NSTextInputContext.h }
  2. {$ifdef TYPES}
  3. type
  4. NSTextInputContextPtr = ^NSTextInputContext;
  5. {$endif}
  6. {$ifdef CLASSES}
  7. type
  8. NSTextInputContext = objcclass external (NSObject)
  9. private
  10. _client: id;
  11. _inputLocales: NSArray;
  12. _documentID: pointer;
  13. _keyBindings: id;
  14. _keyBindingManager: id;
  15. _commandCharacters: NSString;
  16. _documentRefcon: NSInteger;
  17. _reserved:array[0..1] of id;
  18. _auxiliary: id;
  19. _ticFlags: bitpacked record
  20. case byte of
  21. 0: (_anonBitField__ticFlags0: cuint);
  22. 1: (
  23. _acceptsGlyphInfo: 0..1;
  24. _secureInput: 0..1;
  25. _attributedString: 0..1;
  26. _fractionOfDistance: 0..1;
  27. _baselineDelta: 0..1;
  28. _windowLevel: 0..1;
  29. _drawsVertically: 0..1;
  30. _compatibilityMode: 0..1;
  31. _hasTS: 0..1;
  32. _hasLM: 0..1;
  33. _inputLocaleGeneration: 0..((1 shl 16)-1);
  34. _blockTSM: 0..1;
  35. _keyProcess: 0..1;
  36. _preflight: 0..1;
  37. _bindingFound: 0..1;
  38. _unmarkbeforeinsert: 0..1;
  39. _completionHandlingClient: 0..1;
  40. );
  41. end;
  42. public
  43. class function currentInputContext: NSTextInputContext; message 'currentInputContext';
  44. function initWithClient (theClient: NSTextInputClientProtocol): instancetype; message 'initWithClient:';
  45. function client: NSTextInputClientProtocol; message 'client';
  46. procedure setAcceptsGlyphInfo(newValue: ObjCBOOL); message 'setAcceptsGlyphInfo:';
  47. function acceptsGlyphInfo: ObjCBOOL; message 'acceptsGlyphInfo';
  48. procedure setAllowedInputSourceLocales(newValue: NSArray); message 'setAllowedInputSourceLocales:';
  49. function allowedInputSourceLocales: NSArray; message 'allowedInputSourceLocales';
  50. procedure activate; message 'activate';
  51. procedure deactivate; message 'deactivate';
  52. function handleEvent (theEvent: NSEvent): ObjCBOOL; message 'handleEvent:';
  53. procedure discardMarkedText; message 'discardMarkedText';
  54. procedure invalidateCharacterCoordinates; message 'invalidateCharacterCoordinates';
  55. function keyboardInputSources: NSArray; message 'keyboardInputSources';
  56. procedure setSelectedKeyboardInputSource(newValue: NSString); message 'setSelectedKeyboardInputSource:';
  57. function selectedKeyboardInputSource: NSString; message 'selectedKeyboardInputSource';
  58. class function localizedNameForInputSource (inputSourceIdentifier: NSString): NSString; message 'localizedNameForInputSource:';
  59. end;
  60. {$endif}
  61. {$ifdef EXTERNAL_SYMBOLS}
  62. var
  63. NSTextInputContextKeyboardSelectionDidChangeNotification: NSString { available in 10_6 }; cvar; external;
  64. {$endif}