/packages/cocoaint/src/appkit/NSGlyphInfo.inc

https://github.com/slibre/freepascal · Pascal · 77 lines · 27 code · 18 blank · 32 comment · 0 complexity · 3f03837594bd04227f9b84b8b9774ebf MD5 · raw file

  1. { Parsed from Appkit.framework NSGlyphInfo.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSGLYPHINFO_PAS_T}
  4. {$define NSGLYPHINFO_PAS_T}
  5. { Constants }
  6. const
  7. NSIdentityMappingCharacterCollection = 0;
  8. NSAdobeCNS1CharacterCollection = 1;
  9. NSAdobeGB1CharacterCollection = 2;
  10. NSAdobeJapan1CharacterCollection = 3;
  11. NSAdobeJapan2CharacterCollection = 4;
  12. NSAdobeKorea1CharacterCollection = 5;
  13. { Types }
  14. type
  15. NSCharacterCollection = NSUInteger;
  16. NSCharacterCollectionPtr = ^NSCharacterCollection;
  17. {$endif}
  18. {$endif}
  19. {$ifdef RECORDS}
  20. {$ifndef NSGLYPHINFO_PAS_R}
  21. {$define NSGLYPHINFO_PAS_R}
  22. {$endif}
  23. {$endif}
  24. {$ifdef FUNCTIONS}
  25. {$ifndef NSGLYPHINFO_PAS_F}
  26. {$define NSGLYPHINFO_PAS_F}
  27. {$endif}
  28. {$endif}
  29. {$ifdef EXTERNAL_SYMBOLS}
  30. {$ifndef NSGLYPHINFO_PAS_S}
  31. {$define NSGLYPHINFO_PAS_S}
  32. {$endif}
  33. {$endif}
  34. {$ifdef FORWARD}
  35. NSGlyphInfo = objcclass;
  36. NSGlyphInfoPointer = ^NSGlyphInfo;
  37. NSGlyphInfoPtr = NSGlyphInfoPointer;
  38. {$endif}
  39. {$ifdef CLASSES}
  40. {$ifndef NSGLYPHINFO_PAS_C}
  41. {$define NSGLYPHINFO_PAS_C}
  42. { NSGlyphInfo }
  43. NSGlyphInfo = objcclass external (NSObject, NSCopyingProtocol, NSCodingProtocol)
  44. private
  45. _baseString: NSString;
  46. public
  47. class function glyphInfoWithGlyphName_forFont_baseString(glyphName_: NSString; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyphName:forFont:baseString:';
  48. class function glyphInfoWithGlyph_forFont_baseString(glyph: NSGlyph; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyph:forFont:baseString:';
  49. class function glyphInfoWithCharacterIdentifier_collection_baseString(cid: NSUInteger; characterCollection_: NSCharacterCollection; theString: NSString): NSGlyphInfo; message 'glyphInfoWithCharacterIdentifier:collection:baseString:';
  50. function glyphName: NSString; message 'glyphName';
  51. function characterIdentifier: NSUInteger; message 'characterIdentifier';
  52. function characterCollection: NSCharacterCollection; message 'characterCollection';
  53. { Adopted Protocols }
  54. function copyWithZone(zone_: NSZonePtr): id;
  55. procedure encodeWithCoder(aCoder: NSCoder);
  56. function initWithCoder(aDecoder: NSCoder): id;
  57. end;
  58. {$endif}
  59. {$endif}