UIView+Doraemon.h 1.4 KB
Newer Older
Y
yixiang 已提交
1
//
Y
yixiang 已提交
2 3
//  UIView+Doraemon.h
//  DoraemonKit
Y
yixiang 已提交
4
//
Y
yixiang 已提交
5
//  Created by xgb on 2018/11/15.
Y
yixiang 已提交
6 7 8 9
//

#import <UIKit/UIKit.h>

Y
yixiang 已提交
10
@interface UIView (Doraemon)
Y
yixiang 已提交
11 12

/** View's X Position */
Y
yixiang 已提交
13
@property (nonatomic, assign) CGFloat   doraemon_x;
Y
yixiang 已提交
14 15

/** View's Y Position */
Y
yixiang 已提交
16
@property (nonatomic, assign) CGFloat   doraemon_y;
Y
yixiang 已提交
17 18

/** View's width */
Y
yixiang 已提交
19
@property (nonatomic, assign) CGFloat   doraemon_width;
Y
yixiang 已提交
20 21

/** View's height */
Y
yixiang 已提交
22
@property (nonatomic, assign) CGFloat   doraemon_height;
Y
yixiang 已提交
23 24

/** View's origin - Sets X and Y Positions */
Y
yixiang 已提交
25
@property (nonatomic, assign) CGPoint   doraemon_origin;
Y
yixiang 已提交
26 27

/** View's size - Sets Width and Height */
Y
yixiang 已提交
28
@property (nonatomic, assign) CGSize    doraemon_size;
Y
yixiang 已提交
29 30

/** Y value representing the bottom of the view **/
Y
yixiang 已提交
31
@property (nonatomic, assign) CGFloat   doraemon_bottom;
Y
yixiang 已提交
32 33

/** X Value representing the right side of the view **/
Y
yixiang 已提交
34
@property (nonatomic, assign) CGFloat   doraemon_right;
Y
yixiang 已提交
35 36

/** X Value representing the top of the view (alias of x) **/
Y
yixiang 已提交
37
@property (nonatomic, assign) CGFloat   doraemon_left;
Y
yixiang 已提交
38 39

/** Y Value representing the top of the view (alias of y) **/
Y
yixiang 已提交
40
@property (nonatomic, assign) CGFloat   doraemon_top;
Y
yixiang 已提交
41 42

/** X value of the object's center **/
Y
yixiang 已提交
43
@property (nonatomic, assign) CGFloat   doraemon_centerX;
Y
yixiang 已提交
44 45

/** Y value of the object's center **/
Y
yixiang 已提交
46
@property (nonatomic, assign) CGFloat   doraemon_centerY;
Y
yixiang 已提交
47

48
- (UIViewController *)doraemon_viewController;
Y
yixiangboy 已提交
49

M
moliya 已提交
50 51
- (NSArray *)doraemon_findViewsForClass:(Class)clazz;

Y
yixiang 已提交
52
@end
Y
yixiang 已提交
53