PDFKeyboardToolbar.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // PDFKeyboardToolbar.h
  3. // PDFReader
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // The PDF Reader Sample applications are licensed with a modified BSD license.
  8. // Please see License for details. This notice may not be removed from this file.
  9. //
  10. #import <UIKit/UIKit.h>
  11. #import "PDFKTSlideView.h"
  12. #import "PDFKTColorPickView.h"
  13. #import "PDFKTFontNameView.h"
  14. #import "PDFSettingFontView.h"
  15. @class PDFKeyboardToolbar;
  16. @protocol PDFKeyboardDelegate <NSObject>
  17. @optional
  18. - (void)keyboardShouldDissmiss:(PDFKeyboardToolbar *)toolbar;
  19. - (void)keyboard:(PDFKeyboardToolbar *)toolbar updateFontName:(NSString *)fontName;
  20. - (void)keyboard:(PDFKeyboardToolbar *)toolbar updateFontSize:(CGFloat)fontSize;
  21. - (void)keyboard:(PDFKeyboardToolbar *)toolbar updateTextColor:(UIColor *)textColor;
  22. - (void)keyboard:(PDFKeyboardToolbar *)toolbar updateOpacity:(CGFloat)opacity;
  23. @end
  24. @interface PDFKeyboardToolbar : UIView <UITextViewDelegate, UITextFieldDelegate,PDFKTSlideDelegate,PDFKTColorPickDelegate,PDFKTfontNamesDelegate,PDFKTSizeDelegate>
  25. @property (nonatomic,copy) NSString *fontName;
  26. @property (nonatomic,assign) CGFloat fontSize;
  27. @property (nonatomic,assign) CGFloat opacity;
  28. @property (nonatomic, assign) id<PDFKeyboardDelegate> delegate;
  29. - (id)initWithViews:(NSArray*)buttons;
  30. - (id)initWithFontName:(NSString *)fontName fontSize:(CGFloat)fontSize;
  31. - (void)bindToTextView:(UITextView *)textView;
  32. - (void)bindToTextField:(UITextField *)textField;
  33. - (void)refreshFontName:(NSString *)fontName fontSize:(CGFloat)fontSize opacity:(CGFloat)opacity;
  34. @end