-
Notifications
You must be signed in to change notification settings - Fork 0
/
QBPopupMenuPagenatorView.h
executable file
·32 lines (23 loc) · 1.09 KB
/
QBPopupMenuPagenatorView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// QBPopupMenuPagenatorView.h
// QBPopupMenu
//
// Created by Tanaka Katsuma on 2013/11/23.
// Copyright (c) 2013年 Katsuma Tanaka. All rights reserved.
//
#import "QBPopupMenuItemView.h"
typedef NS_ENUM(NSUInteger, QBPopupMenuPagenatorDirection) {
QBPopupMenuPagenatorDirectionLeft,
QBPopupMenuPagenatorDirectionRight
};
@interface QBPopupMenuPagenatorView : QBPopupMenuItemView
@property (nonatomic, weak) id target;
@property (nonatomic, assign) SEL action;
+ (CGFloat)pagenatorWidth;
+ (instancetype)leftPagenatorViewWithTarget:(id)target action:(SEL)action;
+ (instancetype)rightPagenatorViewWithTarget:(id)target action:(SEL)action;
- (instancetype)initWithArrowDirection:(QBPopupMenuPagenatorDirection)arrowDirection target:(id)target action:(SEL)action;
// NOTE: When subclassing this class, use these methods to customize the appearance.
- (CGMutablePathRef)arrowPathInRect:(CGRect)rect direction:(QBPopupMenuPagenatorDirection)direction CF_RETURNS_RETAINED;
- (void)drawArrowInRect:(CGRect)rect direction:(QBPopupMenuPagenatorDirection)direction highlighted:(BOOL)highlighted;
@end