| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FWL_CORE_IFWL_FORM_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_FORM_H_ |
| 8 #define XFA_FWL_CORE_IFWL_FORM_H_ | 8 #define XFA_FWL_CORE_IFWL_FORM_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) | 21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) |
| 22 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1) | 22 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1) |
| 23 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3) | 23 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3) |
| 24 #define FWL_STYLEEXT_FRM_BorderCornerMask (3L << 1) | 24 #define FWL_STYLEEXT_FRM_BorderCornerMask (3L << 1) |
| 25 #define FWL_STYLEEXT_FRM_Max (3) | 25 #define FWL_STYLEEXT_FRM_Max (3) |
| 26 | 26 |
| 27 #if (_FX_OS_ == _FX_MACOSX_) | 27 #if (_FX_OS_ == _FX_MACOSX_) |
| 28 #define FWL_UseMacSystemBorder | 28 #define FWL_UseMacSystemBorder |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 #define FWL_SYSBUTTONSTATE_Hover 0x0001 | |
| 32 #define FWL_SYSBUTTONSTATE_Pressed 0x0002 | |
| 33 #define FWL_SYSBUTTONSTATE_Disabled 0x0010 | |
| 34 | |
| 35 enum FWL_FORMSIZE { | |
| 36 FWL_FORMSIZE_Manual = 0, | |
| 37 FWL_FORMSIZE_Width, | |
| 38 FWL_FORMSIZE_Height, | |
| 39 FWL_FORMSIZE_All, | |
| 40 }; | |
| 41 | |
| 42 class CFWL_SysBtn { | |
| 43 public: | |
| 44 CFWL_SysBtn(); | |
| 45 | |
| 46 bool IsDisabled() const; | |
| 47 uint32_t GetPartState() const; | |
| 48 | |
| 49 void SetNormal(); | |
| 50 void SetPressed(); | |
| 51 void SetHover(); | |
| 52 void SetDisabled(bool bDisabled); | |
| 53 | |
| 54 CFX_RectF m_rtBtn; | |
| 55 uint32_t m_dwState; | |
| 56 }; | |
| 57 | |
| 58 enum FORM_RESIZETYPE { | 31 enum FORM_RESIZETYPE { |
| 59 FORM_RESIZETYPE_None = 0, | 32 FORM_RESIZETYPE_None = 0, |
| 60 FORM_RESIZETYPE_Cap, | 33 FORM_RESIZETYPE_Cap, |
| 61 }; | 34 }; |
| 62 | 35 |
| 63 struct RestoreInfo { | 36 struct RestoreInfo { |
| 64 RestoreInfo(); | 37 RestoreInfo(); |
| 65 ~RestoreInfo(); | 38 ~RestoreInfo(); |
| 66 | 39 |
| 67 CFX_PointF m_ptStart; | 40 CFX_PointF m_ptStart; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 bool m_bSetMaximize; | 133 bool m_bSetMaximize; |
| 161 bool m_bCustomizeLayout; | 134 bool m_bCustomizeLayout; |
| 162 bool m_bDoModalFlag; | 135 bool m_bDoModalFlag; |
| 163 FX_FLOAT m_fSmallIconSz; | 136 FX_FLOAT m_fSmallIconSz; |
| 164 FX_FLOAT m_fBigIconSz; | 137 FX_FLOAT m_fBigIconSz; |
| 165 CFX_DIBitmap* m_pBigIcon; | 138 CFX_DIBitmap* m_pBigIcon; |
| 166 CFX_DIBitmap* m_pSmallIcon; | 139 CFX_DIBitmap* m_pSmallIcon; |
| 167 }; | 140 }; |
| 168 | 141 |
| 169 #endif // XFA_FWL_CORE_IFWL_FORM_H_ | 142 #endif // XFA_FWL_CORE_IFWL_FORM_H_ |
| OLD | NEW |