CPDFSampleView.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //
  2. // CPDFSampleView.h
  3. // ComPDFKit_Tools
  4. //
  5. // Copyright © 2014-2024 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 <UIKit/UIKit.h>
  13. typedef NS_ENUM(NSInteger, CPDFSamplesSelectedIndex) {
  14. CPDFSamplesNote = 0,
  15. CPDFSamplesHighlight,
  16. CPDFSamplesUnderline,
  17. CPDFSamplesStrikeout,
  18. CPDFSamplesSquiggly,
  19. CPDFSamplesFreehand,
  20. CPDFSamplesShapeCircle,
  21. CPDFSamplesShapeSquare,
  22. CPDFSamplesShapeArrow,
  23. CPDFSamplesShapeLine,
  24. CPDFSamplesFreeText,
  25. CPDFSamplesSignature,
  26. CPDFSamplesStamp,
  27. CPDFSamplesImage,
  28. CPDFSamplesLink,
  29. CPDFSamplesSound,
  30. };
  31. typedef NS_ENUM(NSInteger, CPDFArrowStyle) {
  32. CPDFArrowStyleNone = 0,
  33. CPDFArrowStyleOpenArrow = 1,
  34. CPDFArrowStyleClosedArrow = 2,
  35. CPDFArrowStyleSquare = 3,
  36. CPDFArrowStyleCircle = 4,
  37. CPDFArrowStyleDiamond = 5
  38. };
  39. NS_ASSUME_NONNULL_BEGIN
  40. @interface CPDFSampleView : UIView
  41. @property (nonatomic, assign) CPDFSamplesSelectedIndex selecIndex;
  42. @property (nonatomic, assign) CPDFArrowStyle startArrowStyleIndex;
  43. @property (nonatomic, assign) CPDFArrowStyle endArrowStyleIndex;
  44. @property (nonatomic, strong) UIColor *color;
  45. @property (nonatomic, strong) UIColor *interiorColor;
  46. @property (nonatomic, assign) CGFloat opcity;
  47. @property (nonatomic, assign) CGFloat thickness;
  48. @property (nonatomic, assign) CGFloat dotted;
  49. @property (nonatomic, strong) NSString *fontName;
  50. @property (nonatomic, assign) BOOL isBold;
  51. @property (nonatomic, assign) BOOL isItalic;
  52. @property (nonatomic, assign) NSTextAlignment textAlignment;
  53. @end
  54. NS_ASSUME_NONNULL_END