CDSDrawView.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // CDSDrawView.h
  3. // PDFViewer-Mac
  4. //
  5. // Copyright © 2014-2023 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 <Cocoa/Cocoa.h>
  13. @class CDSDrawView;
  14. @protocol CDSDrawViewDelegate <NSObject>
  15. @optional
  16. - (void)drawViewDidFinishTouchMode:(CDSDrawView *)view;
  17. @end
  18. @interface CDSDrawView : NSView
  19. @property (nonatomic,assign) id<CDSDrawViewDelegate> delegate;
  20. @property (nonatomic,retain) NSColor *drawColor;
  21. @property (nonatomic,retain) NSImage *drawImage;
  22. @property (nonatomic,assign) float strokeRadius;
  23. @property (nonatomic,assign) BOOL isAcceptsTouch;
  24. @property (nonatomic,retain) NSBezierPath *drawBezierPath;
  25. - (void)clearImage;
  26. - (NSImage *)signatureImage;
  27. @end