-
Notifications
You must be signed in to change notification settings - Fork 143
/
SETextSelectionView.h
38 lines (26 loc) · 971 Bytes
/
SETextSelectionView.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
33
34
35
36
37
38
//
// SETextSelectionView.h
// SECoreTextView-iOS
//
// Created by kishikawa katsumi on 2013/09/23.
// Copyright (c) 2013 kishikawa katsumi. All rights reserved.
//
#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
@class SETextView, SESelectionGrabber, SETextLayout;
@interface SETextSelectionView : UIView
- (instancetype)initWithFrame:(CGRect)frame textView:(SETextView *)textView;
@property (nonatomic, weak) SETextView *textView;
@property (nonatomic) SESelectionGrabber *startGrabber;
@property (nonatomic) SESelectionGrabber *endGrabber;
@property (nonatomic) UILongPressGestureRecognizer *selectionGestureRecognizer;
@property (nonatomic) UIPanGestureRecognizer *startGrabberGestureRecognizer;
@property (nonatomic) UIPanGestureRecognizer *endGrabberGestureRecognizer;
@property (nonatomic) CGRect startFrame;
@property (nonatomic) CGRect endFrame;
- (void)update;
- (void)showControls;
- (void)hideControls;
@end
#endif