/packages/cocoaint/src/Foundation.pas
https://github.com/slibre/freepascal · Pascal · 81 lines · 29 code · 18 blank · 34 comment · 0 complexity · 19dea1be81cc3094f92187c8454d7dbd MD5 · raw file
- unit Foundation;
- {$mode objfpc}
- {$modeswitch objectivec1}
- {$define NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES}
- interface
- uses
- ctypes, MacOSAll;
-
- {$linkframework Foundation}
- {$include UndefinedTypes.inc}
- {$define HEADER}
- {$include foundation/Foundation.inc}
- {$undef HEADER}
- {$define TYPES}
- {$include foundation/Foundation.inc}
- {$undef TYPES}
- {$define RECORDS}
- {$include foundation/Foundation.inc}
- {$undef RECORDS}
- type
- {$define FORWARD}
- {$include foundation/Foundation.inc}
- {$undef FORWARD}
- {$define CLASSES}
- {$include foundation/Foundation.inc}
- {$undef CLASSES}
-
- {$define PROTOCOLS}
- {$include foundation/Foundation.inc}
- {$undef PROTOCOLS}
- {$define FUNCTIONS}
- {$include foundation/Foundation.inc}
- {$undef FUNCTIONS}
- {$define EXTERNAL_SYMBOLS}
- {$include foundation/Foundation.inc}
- {$undef EXTERNAL_SYMBOLS}
- {$define USER_PATCHES}
- {$include foundation/Foundation.inc}
- {$undef USER_PATCHES}
- { Inline functions }
- function NSSTR (inString: PChar): NSString;
- function NSMakeRange (loc: NSUInteger; len: NSUInteger): NSRange;
- function NSMaxRange (range: NSRange): NSUInteger;
- function NSLocationInRange (loc: NSUInteger; range: NSRange): boolean;
- function NSEqualRanges (range1, range2: NSRange): boolean;
- function NSMakePoint (x: CGFloat; y: CGFloat): NSPoint;
- function NSMakeSize(w: CGFloat; h: CGFloat): NSSize;
- function NSMakeRect(x, y: CGFloat; w, h: CGFloat): NSRect;
- function NSMaxX (aRect: NSRect): CGFloat;
- function NSMaxY (aRect: NSRect): CGFloat;
- function NSMidX (aRect: NSRect): CGFloat;
- function NSMidY (aRect: NSRect): CGFloat;
- function NSMinX (aRect: NSRect): CGFloat;
- function NSMinY (aRect: NSRect): CGFloat;
- function NSWidth (aRect: NSRect): CGFloat;
- function NSHeight (aRect: NSRect): CGFloat;
- function NSRectFromCGRect (aRect: CGRect): NSRect;
- function NSRectToCGRect (aRect: NSRect): CGRect;
- function NSPointFromCGPoint (aPoint: CGPoint): NSPoint;
- function NSPointToCGPoint (aPoint: NSPoint): CGPoint;
- function NSSizeFromCGSize(aSize: CGSize): NSSize;
- function NSSizeToCGSize(aSize: NSSize): CGSize;
- implementation
- {$include InlineFunctions.inc}
- end.