OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CFWL_SYSBTN_H_ | 7 #ifndef XFA_FWL_CFWL_SYSBTN_H_ |
8 #define XFA_FWL_CORE_CFWL_SYSBTN_H_ | 8 #define XFA_FWL_CFWL_SYSBTN_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_coordinates.h" | 10 #include "core/fxcrt/fx_coordinates.h" |
11 | 11 |
12 #define FWL_SYSBUTTONSTATE_Hover 0x0001 | 12 #define FWL_SYSBUTTONSTATE_Hover 0x0001 |
13 #define FWL_SYSBUTTONSTATE_Pressed 0x0002 | 13 #define FWL_SYSBUTTONSTATE_Pressed 0x0002 |
14 #define FWL_SYSBUTTONSTATE_Disabled 0x0010 | 14 #define FWL_SYSBUTTONSTATE_Disabled 0x0010 |
15 | 15 |
16 class CFWL_SysBtn { | 16 class CFWL_SysBtn { |
17 public: | 17 public: |
18 CFWL_SysBtn(); | 18 CFWL_SysBtn(); |
19 ~CFWL_SysBtn(); | 19 ~CFWL_SysBtn(); |
20 | 20 |
21 bool IsDisabled() const; | 21 bool IsDisabled() const; |
22 uint32_t GetPartState() const; | 22 uint32_t GetPartState() const; |
23 | 23 |
24 void SetNormal(); | 24 void SetNormal(); |
25 void SetPressed(); | 25 void SetPressed(); |
26 void SetHover(); | 26 void SetHover(); |
27 void SetDisabled(bool bDisabled); | 27 void SetDisabled(bool bDisabled); |
28 | 28 |
29 CFX_RectF m_rtBtn; | 29 CFX_RectF m_rtBtn; |
30 uint32_t m_dwState; | 30 uint32_t m_dwState; |
31 }; | 31 }; |
32 | 32 |
33 #endif // XFA_FWL_CORE_CFWL_SYSBTN_H_ | 33 #endif // XFA_FWL_CFWL_SYSBTN_H_ |
OLD | NEW |