QBPopupMenuPagenatorView.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // QBPopupMenuPagenatorView.h
  3. // QBPopupMenu
  4. //
  5. // Created by Tanaka Katsuma on 2013/11/23.
  6. // Copyright (c) 2013年 Katsuma Tanaka. All rights reserved.
  7. //
  8. #import "QBPopupMenuItemView.h"
  9. typedef NS_ENUM(NSUInteger, QBPopupMenuPagenatorDirection) {
  10. QBPopupMenuPagenatorDirectionLeft,
  11. QBPopupMenuPagenatorDirectionRight
  12. };
  13. @interface QBPopupMenuPagenatorView : QBPopupMenuItemView
  14. @property (nonatomic, weak) id target;
  15. @property (nonatomic, assign) SEL action;
  16. + (CGFloat)pagenatorWidth;
  17. + (instancetype)leftPagenatorViewWithTarget:(id)target action:(SEL)action;
  18. + (instancetype)rightPagenatorViewWithTarget:(id)target action:(SEL)action;
  19. - (instancetype)initWithArrowDirection:(QBPopupMenuPagenatorDirection)arrowDirection target:(id)target action:(SEL)action;
  20. // NOTE: When subclassing this class, use these methods to customize the appearance.
  21. - (CGMutablePathRef)arrowPathInRect:(CGRect)rect direction:(QBPopupMenuPagenatorDirection)direction CF_RETURNS_RETAINED;
  22. - (void)drawArrowInRect:(CGRect)rect direction:(QBPopupMenuPagenatorDirection)direction highlighted:(BOOL)highlighted;
  23. @end