PDRToolSystem.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //
  2. // PDR_Manager_defs.h
  3. // Pandora
  4. //
  5. // Created by Mac Pro_C on 12-12-25.
  6. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
  7. //
  8. #ifndef Pandora_PDR_Tool_System_h
  9. #define Pandora_PDR_Tool_System_h
  10. #import <Foundation/Foundation.h>
  11. #import <CoreGraphics/CoreGraphics.h>
  12. #import <UIKit/UIKit.h>
  13. #define IOS_DEV_GROUP_IPAD 0x00000001
  14. #define IOS_DEV_GROUP_IPOD 0x00000002
  15. #define IOS_DEV_GROUP_IPHONE 0x00000004
  16. #define IOS_DEV_GROUP_IPHONE5 0x00000008
  17. #define IOS_DEV_SCALE_NORMAL 0x00010000
  18. #define IOS_DEV_SCALE_DOUBLE 0x00020000
  19. #pragma mark -
  20. #pragma mark Devices Name
  21. #define PDR_DEVNAME_IPHONE1G 0x00000001
  22. #define PDR_DEVNAME_IPHONE3G 0x00000002
  23. #define PDR_DEVNAME_IPHONE3GS 0x00000004
  24. #define PDR_DEVNAME_IPHONE4 0x00000008
  25. #define PDR_DEVNAME_VERIZONIPHONE4 0x00000010
  26. #define PDR_DEVNAME_IPHOEN4S 0x00000020
  27. #define PDR_DEVNAME_IPHONE5 0x00000040
  28. #define PDR_DEVNAME_IPODTOUCH1G 0x00000080
  29. #define PDR_DEVNAME_IPODTOUCH2G 0x00000100
  30. #define PDR_DEVNAME_IPODTOUCH3G 0x00000200
  31. #define PDR_DEVNAME_IPODTOUCH4G 0x00000400
  32. #define PDR_DEVNAME_IPAD 0x00000800
  33. #define PDR_DEVNAME_IPAD2WIFI 0x00001000
  34. #define PDR_DEVNAME_IPAD2GSM 0x00002000
  35. #define PDR_DEVNAME_IPAD2CDMA 0x00004000
  36. #define PDR_DEVNAME_IPADMINI 0x00008000
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. /*
  41. ========================================================================
  42. * @Summary: 获取系统的屏幕尺寸
  43. *
  44. * @Parameters:
  45. *
  46. *
  47. * @Returns: 返回当前设备的宽高
  48. *
  49. * @Remark: 获取的屏幕尺寸为手机正向时宽高
  50. *
  51. * @Changelog:
  52. *
  53. ========================================================================
  54. */
  55. CGRect PDR_Tool_GetSystemScreenRect(void);
  56. /*
  57. ========================================================================
  58. * @Summary: 获取系统的屏幕尺寸
  59. *
  60. * @Parameters:
  61. *
  62. *
  63. * @Returns: 返回当前设备的宽高
  64. *
  65. * @Remark: 返回设备指定方向的宽高
  66. *
  67. * @Changelog:
  68. *
  69. ========================================================================
  70. */
  71. CGRect PDR_Tool_GetScreenRectByOrientation(UIInterfaceOrientation eOrientation);
  72. // int DHA_Tool_GetDeviceModle();
  73. // int DHA_Tool_GetDevName();
  74. //CGFloat PDR_Tool_String2ScreenValue(NSString* pStringValue, BOOL bIsHorizontal);
  75. UIColor* PDR_Tool_String2UIColor(NSString* pColorString);
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif