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_FXFA_APP_XFA_FFFIELD_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFFIELD_H_ |
8 #define XFA_FXFA_APP_XFA_FFFIELD_H_ | 8 #define XFA_FXFA_APP_XFA_FFFIELD_H_ |
9 | 9 |
10 #include "xfa/fwl/core/fwl_sdadapterimp.h" | 10 #include "xfa/fwl/core/fwl_sdadapterimp.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 FX_FLOAT fy); | 46 FX_FLOAT fy); |
47 virtual FX_BOOL OnRButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 47 virtual FX_BOOL OnRButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
48 virtual FX_BOOL OnRButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 48 virtual FX_BOOL OnRButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
49 virtual FX_BOOL OnRButtonDblClk(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 49 virtual FX_BOOL OnRButtonDblClk(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
50 | 50 |
51 virtual FX_BOOL OnSetFocus(CXFA_FFWidget* pOldWidget); | 51 virtual FX_BOOL OnSetFocus(CXFA_FFWidget* pOldWidget); |
52 virtual FX_BOOL OnKillFocus(CXFA_FFWidget* pNewWidget); | 52 virtual FX_BOOL OnKillFocus(CXFA_FFWidget* pNewWidget); |
53 virtual FX_BOOL OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags); | 53 virtual FX_BOOL OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags); |
54 virtual FX_BOOL OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags); | 54 virtual FX_BOOL OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags); |
55 virtual FX_BOOL OnChar(uint32_t dwChar, uint32_t dwFlags); | 55 virtual FX_BOOL OnChar(uint32_t dwChar, uint32_t dwFlags); |
56 virtual uint32_t OnHitTest(FX_FLOAT fx, FX_FLOAT fy); | 56 virtual FWL_WidgetHit OnHitTest(FX_FLOAT fx, FX_FLOAT fy); |
57 virtual FX_BOOL OnSetCursor(FX_FLOAT fx, FX_FLOAT fy); | 57 virtual FX_BOOL OnSetCursor(FX_FLOAT fx, FX_FLOAT fy); |
58 | 58 |
59 protected: | 59 protected: |
60 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); | 60 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); |
61 virtual void SetFWLRect(); | 61 virtual void SetFWLRect(); |
62 void SetFWLThemeProvider(); | 62 void SetFWLThemeProvider(); |
63 CFWL_Widget* GetNormalWidget() { return m_pNormalWidget; } | 63 CFWL_Widget* GetNormalWidget() { return m_pNormalWidget; } |
64 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); | 64 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); |
65 void LayoutCaption(); | 65 void LayoutCaption(); |
66 void RenderCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL); | 66 void RenderCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL); |
(...skipping 24 matching lines...) Expand all Loading... |
91 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 91 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
92 const CFX_Matrix* pMatrix = NULL); | 92 const CFX_Matrix* pMatrix = NULL); |
93 | 93 |
94 protected: | 94 protected: |
95 CFWL_Widget* m_pNormalWidget; | 95 CFWL_Widget* m_pNormalWidget; |
96 CFX_RectF m_rtUI; | 96 CFX_RectF m_rtUI; |
97 CFX_RectF m_rtCaption; | 97 CFX_RectF m_rtCaption; |
98 }; | 98 }; |
99 | 99 |
100 #endif // XFA_FXFA_APP_XFA_FFFIELD_H_ | 100 #endif // XFA_FXFA_APP_XFA_FFFIELD_H_ |
OLD | NEW |