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_PUSHBUTTON_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_PUSHBUTTON_H_ |
8 #define XFA_FWL_CORE_IFWL_PUSHBUTTON_H_ | 8 #define XFA_FWL_CORE_IFWL_PUSHBUTTON_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void DrawWidget(CFX_Graphics* pGraphics, | 46 void DrawWidget(CFX_Graphics* pGraphics, |
47 const CFX_Matrix* pMatrix = nullptr) override; | 47 const CFX_Matrix* pMatrix = nullptr) override; |
48 void OnProcessMessage(CFWL_Message* pMessage) override; | 48 void OnProcessMessage(CFWL_Message* pMessage) override; |
49 void OnDrawWidget(CFX_Graphics* pGraphics, | 49 void OnDrawWidget(CFX_Graphics* pGraphics, |
50 const CFX_Matrix* pMatrix) override; | 50 const CFX_Matrix* pMatrix) override; |
51 | 51 |
52 private: | 52 private: |
53 void DrawBkground(CFX_Graphics* pGraphics, | 53 void DrawBkground(CFX_Graphics* pGraphics, |
54 IFWL_ThemeProvider* pTheme, | 54 IFWL_ThemeProvider* pTheme, |
55 const CFX_Matrix* pMatrix); | 55 const CFX_Matrix* pMatrix); |
56 void DrawText(CFX_Graphics* pGraphics, | |
57 IFWL_ThemeProvider* pTheme, | |
58 const CFX_Matrix* pMatrix); | |
59 uint32_t GetPartStates(); | 56 uint32_t GetPartStates(); |
60 void UpdateTextOutStyles(); | 57 void UpdateTextOutStyles(); |
61 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); | 58 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); |
62 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 59 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
63 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 60 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
64 void OnMouseMove(CFWL_MsgMouse* pMsg); | 61 void OnMouseMove(CFWL_MsgMouse* pMsg); |
65 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 62 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
66 void OnKeyDown(CFWL_MsgKey* pMsg); | 63 void OnKeyDown(CFWL_MsgKey* pMsg); |
67 | 64 |
68 CFX_RectF m_rtClient; | 65 CFX_RectF m_rtClient; |
69 CFX_RectF m_rtCaption; | 66 CFX_RectF m_rtCaption; |
70 bool m_bBtnDown; | 67 bool m_bBtnDown; |
71 uint32_t m_dwTTOStyles; | 68 uint32_t m_dwTTOStyles; |
72 int32_t m_iTTOAlign; | 69 int32_t m_iTTOAlign; |
73 }; | 70 }; |
74 | 71 |
75 #endif // XFA_FWL_CORE_IFWL_PUSHBUTTON_H_ | 72 #endif // XFA_FWL_CORE_IFWL_PUSHBUTTON_H_ |
OLD | NEW |