UIView(FWToolkit)

@interface UIView (FWToolkit)

/// 顶部纵坐标,frame.origin.y
@property (nonatomic, assign) CGFloat fw_top NS_REFINED_FOR_SWIFT;

/// 底部纵坐标,frame.origin.y + frame.size.height
@property (nonatomic, assign) CGFloat fw_bottom NS_REFINED_FOR_SWIFT;

/// 左边横坐标,frame.origin.x
@property (nonatomic, assign) CGFloat fw_left NS_REFINED_FOR_SWIFT;

/// 右边横坐标,frame.origin.x + frame.size.width
@property (nonatomic, assign) CGFloat fw_right NS_REFINED_FOR_SWIFT;

/// 宽度,frame.size.width
@property (nonatomic, assign) CGFloat fw_width NS_REFINED_FOR_SWIFT;

/// 高度,frame.size.height
@property (nonatomic, assign) CGFloat fw_height NS_REFINED_FOR_SWIFT;

/// 中心横坐标,center.x
@property (nonatomic, assign) CGFloat fw_centerX NS_REFINED_FOR_SWIFT;

/// 中心纵坐标,center.y
@property (nonatomic, assign) CGFloat fw_centerY NS_REFINED_FOR_SWIFT;

/// 起始横坐标,frame.origin.x
@property (nonatomic, assign) CGFloat fw_x NS_REFINED_FOR_SWIFT;

/// 起始纵坐标,frame.origin.y
@property (nonatomic, assign) CGFloat fw_y NS_REFINED_FOR_SWIFT;

/// 起始坐标,frame.origin
@property (nonatomic, assign) CGPoint fw_origin NS_REFINED_FOR_SWIFT;

/// 大小,frame.size
@property (nonatomic, assign) CGSize fw_size NS_REFINED_FOR_SWIFT;

@end

Undocumented

  • 顶部纵坐标,frame.origin.y

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_top;
  • 底部纵坐标,frame.origin.y + frame.size.height

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_bottom;
  • 左边横坐标,frame.origin.x

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_left;
  • 右边横坐标,frame.origin.x + frame.size.width

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_right;
  • 宽度,frame.size.width

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_width;
  • 高度,frame.size.height

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_height;
  • 中心横坐标,center.x

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_centerX;
  • 中心纵坐标,center.y

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_centerY;
  • 起始横坐标,frame.origin.x

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_x;
  • 起始纵坐标,frame.origin.y

    Declaration

    Objective-C

    @property (nonatomic) CGFloat fw_y;
  • 起始坐标,frame.origin

    Declaration

    Objective-C

    @property (nonatomic) CGPoint fw_origin;
  • 大小,frame.size

    Declaration

    Objective-C

    @property (nonatomic) CGSize fw_size;