text: //
  //  QHUIDefines.h
  //  QHCoreLib
  //
  //  Created by changtang on 2017/9/20.
  //  Copyright © 2017年 TCTONY. All rights reserved.
  //
  
  #ifndef QHUIDefines_h
  #define QHUIDefines_h
  
  #define QH_SCREEN_SCALE             ([UIScreen mainScreen].scale)
  
  #define QH_SCREEN_WIDTH             ([UIScreen mainScreen].bounds.size.width)
  #define QH_SCREEN_HEIGHT            ([UIScreen mainScreen].bounds.size.height)
  
  #define QH_SCREEN_PORTRAIT_WIDTH    (MIN(QH_SCREEN_WIDTH, QH_SCREEN_HEIGHT))
  #define QH_SCREEN_PORTRAIT_HEIGHT   (MAX(QH_SCREEN_WIDTH, QH_SCREEN_HEIGHT))
  
  #define QH__DP(size, _base_screen_width) ((CGFloat)(size) / (_base_screen_width) * QH_SCREEN_PORTRAIT_WIDTH)
  
  #define QH_DP_320(size)     QH__DP(size, 320.0)
  #define QH_DP_375(size)     QH__DP(size, 375.0)
  #define QH_DP_414(size)     QH__DP(size, 414.0)
  
  #define QH_STATUSBAR_HEIGHT         20.0f
  #define QH_NAVIGATIONBAR_HEIGHT     44.0f
  #define QH_TOPBAR_HEIGHT            (QH_STATUSBAR_HEIGHT + QH_NAVIGATIONBAR_HEIGHT)
  #define QH_TABBAR_HEIGHT            49.0f
  
  #define UIControlEventQHCustomEvent1    ((UIControlEvents)0x01000000)
  #define UIControlEventQHCustomEvent2    ((UIControlEvents)0x02000000)
  #define UIControlEventQHCustomEvent3    ((UIControlEvents)0x04000000)
  #define UIControlEventQHCustomEvent4    ((UIControlEvents)0x08000000)
  
  #endif /* QHUIDefines_h */
  