//
//  UIView+GMExtension.h
//  Gengmei
//
//  Created by Q14 on 2018/9/28.
//  Copyright © 2018年 更美互动信息科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
@class GMPhotoManager;
@interface UIView (GMExtension)

@property (assign, nonatomic) CGFloat gm_x;
@property (assign, nonatomic) CGFloat gm_y;
@property (assign, nonatomic) CGFloat gm_w;
@property (assign, nonatomic) CGFloat gm_h;
@property (assign, nonatomic) CGSize gm_size;
@property (assign, nonatomic) CGPoint gm_origin;

/**
 获取当前视图的控制器
 
 @return 控制器
 */
- (UIViewController *)viewController;

- (void)showImageHUDText:(NSString *)text;
- (void)showLoadingHUDText:(NSString *)text;
- (void)handleLoading;

/* <HXAlbumListViewControllerDelegate> */
- (void)gm_presentAlbumListViewControllerWithManager:(GMPhotoManager *)manager delegate:(id)delegate;

/* <HXCustomCameraViewControllerDelegate> */
- (void)gm_presentCustomCameraViewControllerWithManager:(GMPhotoManager *)manager delegate:(id)delegate;
@end

@interface GMHUD : UIView
- (instancetype)initWithFrame:(CGRect)frame imageName:(NSString *)imageName text:(NSString *)text;
- (void)showloading;
@end
