12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // UIView+MASAdditions.h
- // Masonry
- //
- // Created by Jonas Budelmann on 20/07/13.
- // Copyright (c) 2013 cloudling. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "MASConstraintBuilder.h"
- #import "MASViewAttribute.h"
- @interface UIView (MASAdditions)
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_left;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_top;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_right;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottom;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_leading;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_trailing;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_width;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_height;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerX;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerY;
- @property (nonatomic, strong, readonly) MASViewAttribute *mas_baseline;
- - (void)mas_buildConstraints:(void(^)(MASConstraintBuilder *constraints))block;
- @end
- #ifdef MAS_SHORTHAND
- @interface UIView (MASShortHandAdditions)
- @property (nonatomic, strong, readonly) MASViewAttribute *left;
- @property (nonatomic, strong, readonly) MASViewAttribute *top;
- @property (nonatomic, strong, readonly) MASViewAttribute *right;
- @property (nonatomic, strong, readonly) MASViewAttribute *bottom;
- @property (nonatomic, strong, readonly) MASViewAttribute *leading;
- @property (nonatomic, strong, readonly) MASViewAttribute *trailing;
- @property (nonatomic, strong, readonly) MASViewAttribute *width;
- @property (nonatomic, strong, readonly) MASViewAttribute *height;
- @property (nonatomic, strong, readonly) MASViewAttribute *centerX;
- @property (nonatomic, strong, readonly) MASViewAttribute *centerY;
- @property (nonatomic, strong, readonly) MASViewAttribute *baseline;
- - (void)buildConstraints:(void(^)(MASConstraintBuilder *constraints))block;
- @end
- #endif
|