//  代码地址: https://github.com/CoderMJLee/ZYJMJRefresh
//  代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000
//  UIView+Extension.m
//  ZYJMJRefreshExample
//
//  Created by MJ Lee on 14-5-28.
//  Copyright (c) 2014年 小码哥. All rights reserved.
//

#import "UIView+ZYJMJExtension.h"

@implementation UIView (ZYJMJExtension)
- (void)setMj_ZYJx:(CGFloat)mj_ZYJx
{
    CGRect frame = self.frame;
    frame.origin.x = mj_ZYJx;
    self.frame = frame;
}

- (CGFloat)mj_ZYJx
{
    return self.frame.origin.x;
}

- (void)setMj_ZYJy:(CGFloat)mj_ZYJy
{
    CGRect frame = self.frame;
    frame.origin.y = mj_ZYJy;
    self.frame = frame;
}

- (CGFloat)mj_ZYJy
{
    return self.frame.origin.y;
}

- (void)setMj_ZYJw:(CGFloat)mj_ZYJw
{
    CGRect frame = self.frame;
    frame.size.width = mj_ZYJw;
    self.frame = frame;
}

- (CGFloat)mj_ZYJw
{
    return self.frame.size.width;
}

- (void)setMj_ZYJh:(CGFloat)mj_ZYJh
{
    CGRect frame = self.frame;
    frame.size.height = mj_ZYJh;
    self.frame = frame;
}

- (CGFloat)mj_ZYJh
{
    return self.frame.size.height;
}

- (void)setMj_ZYJsize:(CGSize)mj_ZYJsize
{
    CGRect frame = self.frame;
    frame.size = mj_ZYJsize;
    self.frame = frame;
}

- (CGSize)mj_ZYJsize
{
    return self.frame.size;
}

- (void)setMj_ZYJorigin:(CGPoint)mj_ZYJorigin
{
    CGRect frame = self.frame;
    frame.origin = mj_ZYJorigin;
    self.frame = frame;
}

- (CGPoint)mj_ZYJorigin
{
    return self.frame.origin;
}
@end
