CPDFDropDownMenu.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // CPDFDropDownMenu.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. @class CPDFDropDownMenu;
  14. @protocol CPDFDropDownMenuDelegate <NSObject>
  15. - (void)dropDownMenu:(CPDFDropDownMenu*)menu didEditWithText:(NSString*)text;
  16. - (void)dropDownMenu:(CPDFDropDownMenu*)menu didSelectWithIndex:(NSInteger)index;
  17. @end
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface CPDFDropDownMenu : UIView
  20. @property (nonatomic, assign) id<CPDFDropDownMenuDelegate> delegate;
  21. @property (nonatomic, strong) NSMutableArray * options;
  22. @property (nonatomic, assign) CGFloat rowHeight;
  23. @property (nonatomic, assign) CGFloat menuHeight;
  24. @property (nonatomic, assign) BOOL editable;
  25. @property (nonatomic, strong) UIImage * buttonImage;
  26. @property (nonatomic, copy) NSString * placeHolder;
  27. @property (nonatomic, copy) NSString * defaultValue;
  28. @property (nonatomic, strong) UIColor * textColor;
  29. @property (nonatomic, strong) UIFont * font;
  30. @property (nonatomic, assign) BOOL showBorder;
  31. @end
  32. NS_ASSUME_NONNULL_END