CPDFKitPlatform.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // CPDFKitPlatform.h
  3. // ComPDFKit
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #ifndef CPDFKitPlatform_h
  13. #define CPDFKitPlatform_h
  14. #import <Foundation/Foundation.h>
  15. #import <CoreGraphics/CoreGraphics.h>
  16. #if TARGET_OS_IPHONE
  17. #import <UIKit/UIKit.h>
  18. #define CPDFKitPlatformColor UIColor
  19. #define CPDFKitPlatformImage UIImage
  20. #define CPDFKitPlatformFont UIFont
  21. #define CPDFKitPlatformEdgeInsets UIEdgeInsets
  22. #elif TARGET_OS_MAC
  23. #import <Cocoa/Cocoa.h>
  24. #define CPDFKitPlatformColor NSColor
  25. #define CPDFKitPlatformImage NSImage
  26. #define CPDFKitPlatformFont NSFont
  27. #define CPDFKitPlatformEdgeInsets NSEdgeInsets
  28. #endif
  29. #endif /* CPDFKitPlatform_h */