OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 |
| 7 #ifndef XFA_FWL_CORE_CFWL_SYSBTN_H_ |
| 8 #define XFA_FWL_CORE_CFWL_SYSBTN_H_ |
| 9 |
| 10 #include "core/fxcrt/fx_coordinates.h" |
| 11 |
| 12 #define FWL_SYSBUTTONSTATE_Hover 0x0001 |
| 13 #define FWL_SYSBUTTONSTATE_Pressed 0x0002 |
| 14 #define FWL_SYSBUTTONSTATE_Disabled 0x0010 |
| 15 |
| 16 class CFWL_SysBtn { |
| 17 public: |
| 18 CFWL_SysBtn(); |
| 19 ~CFWL_SysBtn(); |
| 20 |
| 21 bool IsDisabled() const; |
| 22 uint32_t GetPartState() const; |
| 23 |
| 24 void SetNormal(); |
| 25 void SetPressed(); |
| 26 void SetHover(); |
| 27 void SetDisabled(bool bDisabled); |
| 28 |
| 29 CFX_RectF m_rtBtn; |
| 30 uint32_t m_dwState; |
| 31 }; |
| 32 |
| 33 #endif // XFA_FWL_CORE_CFWL_SYSBTN_H_ |
OLD | NEW |