CPDFBorder.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // CPDFBorder.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. #import <ComPDFKit/CPDFKitPlatform.h>
  13. /**
  14. * Style in which CPDFBorder is displayed.
  15. */
  16. typedef NS_ENUM(NSInteger, CPDFBorderStyle) {
  17. CPDFBorderStyleSolid = 0,
  18. CPDFBorderStyleDashed = 1,
  19. CPDFBorderStyleBeveled = 2,
  20. CPDFBorderStyleInset = 3,
  21. CPDFBorderStyleUnderline = 4
  22. };
  23. @interface CPDFBorder : NSObject
  24. - (instancetype)initWithStyle:(CPDFBorderStyle)style lineWidth:(CGFloat)lineWidth dashPattern:(NSArray *)dashPattern;
  25. /**
  26. * Whether border is drawn solid, dashed etc.
  27. *
  28. * @see CPDFBorderStyle
  29. */
  30. @property (nonatomic,readonly) CPDFBorderStyle style;
  31. /**
  32. * Width of line used to stroke border.
  33. */
  34. @property (nonatomic,readonly) CGFloat lineWidth;
  35. /**
  36. * Array of floats specifying the dash pattern.
  37. */
  38. @property (nonatomic,readonly) NSArray *dashPattern;
  39. @end