NSTextInputClient.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. { Parsed from AppKit.framework NSTextInputClient.h }
  2. {$ifdef TYPES}
  3. type
  4. NSTextInputClientProtocolPtr = ^NSTextInputClientProtocol;
  5. {$endif}
  6. {$ifdef PROTOCOLS}
  7. type
  8. NSTextInputClientProtocol = objcprotocol external name 'NSTextInputClient'
  9. required
  10. procedure insertText_replacementRange (aString: id; replacementRange: NSRange); message 'insertText:replacementRange:';
  11. procedure doCommandBySelector (aSelector: SEL); message 'doCommandBySelector:';
  12. procedure setMarkedText_selectedRange_replacementRange (aString: id; selectedRange: NSRange; replacementRange: NSRange); message 'setMarkedText:selectedRange:replacementRange:';
  13. procedure unmarkText; message 'unmarkText';
  14. function selectedRange: NSRange; message 'selectedRange';
  15. function markedRange: NSRange; message 'markedRange';
  16. function hasMarkedText: ObjCBOOL; message 'hasMarkedText';
  17. function attributedSubstringForProposedRange_actualRange (aRange: NSRange; actualRange: NSRangePointer): NSAttributedString; message 'attributedSubstringForProposedRange:actualRange:';
  18. function validAttributesForMarkedText: NSArray; message 'validAttributesForMarkedText';
  19. function firstRectForCharacterRange_actualRange (aRange: NSRange; actualRange: NSRangePointer): NSRect; message 'firstRectForCharacterRange:actualRange:';
  20. function characterIndexForPoint (aPoint: NSPoint): NSUInteger; message 'characterIndexForPoint:';
  21. optional
  22. function attributedString: NSAttributedString; message 'attributedString';
  23. function fractionOfDistanceThroughGlyphForPoint (aPoint: NSPoint): CGFloat; message 'fractionOfDistanceThroughGlyphForPoint:';
  24. function baselineDeltaForCharacterAtIndex (anIndex: NSUInteger): CGFloat; message 'baselineDeltaForCharacterAtIndex:';
  25. function windowLevel: NSInteger; message 'windowLevel';
  26. function drawsVerticallyForCharacterAtIndex (charIndex: NSUInteger): ObjCBOOL; message 'drawsVerticallyForCharacterAtIndex:'; { available in 10_6 }
  27. end;
  28. {$endif}