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_CFWL_FORM_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_FORM_H_ |
8 #define XFA_FWL_CORE_CFWL_FORM_H_ | 8 #define XFA_FWL_CORE_CFWL_FORM_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 25 matching lines...) Expand all Loading... |
36 class CFWL_Form : public CFWL_Widget { | 36 class CFWL_Form : public CFWL_Widget { |
37 public: | 37 public: |
38 CFWL_Form(const CFWL_App* app, | 38 CFWL_Form(const CFWL_App* app, |
39 std::unique_ptr<CFWL_WidgetProperties> properties, | 39 std::unique_ptr<CFWL_WidgetProperties> properties, |
40 CFWL_Widget* pOuter); | 40 CFWL_Widget* pOuter); |
41 ~CFWL_Form() override; | 41 ~CFWL_Form() override; |
42 | 42 |
43 // CFWL_Widget | 43 // CFWL_Widget |
44 FWL_Type GetClassID() const override; | 44 FWL_Type GetClassID() const override; |
45 bool IsInstance(const CFX_WideStringC& wsClass) const override; | 45 bool IsInstance(const CFX_WideStringC& wsClass) const override; |
46 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 46 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override; |
47 void GetClientRect(CFX_RectF& rect) override; | 47 void GetClientRect(CFX_RectF& rect) override; |
48 void Update() override; | 48 void Update() override; |
49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
50 void DrawWidget(CFX_Graphics* pGraphics, | 50 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
51 const CFX_Matrix* pMatrix = nullptr) override; | |
52 void OnProcessMessage(CFWL_Message* pMessage) override; | 51 void OnProcessMessage(CFWL_Message* pMessage) override; |
53 void OnDrawWidget(CFX_Graphics* pGraphics, | 52 void OnDrawWidget(CFX_Graphics* pGraphics, |
54 const CFX_Matrix* pMatrix) override; | 53 const CFX_Matrix* pMatrix) override; |
55 | 54 |
56 CFWL_Widget* DoModal(); | 55 CFWL_Widget* DoModal(); |
57 void EndDoModal(); | 56 void EndDoModal(); |
58 | 57 |
59 CFWL_Widget* GetSubFocus() const { return m_pSubFocus; } | 58 CFWL_Widget* GetSubFocus() const { return m_pSubFocus; } |
60 void SetSubFocus(CFWL_Widget* pWidget) { m_pSubFocus = pWidget; } | 59 void SetSubFocus(CFWL_Widget* pWidget) { m_pSubFocus = pWidget; } |
61 | 60 |
(...skipping 30 matching lines...) Expand all Loading... |
92 FX_FLOAT m_fCYBorder; | 91 FX_FLOAT m_fCYBorder; |
93 int32_t m_iCaptureBtn; | 92 int32_t m_iCaptureBtn; |
94 int32_t m_iSysBox; | 93 int32_t m_iSysBox; |
95 bool m_bLButtonDown; | 94 bool m_bLButtonDown; |
96 bool m_bMaximized; | 95 bool m_bMaximized; |
97 bool m_bSetMaximize; | 96 bool m_bSetMaximize; |
98 bool m_bDoModalFlag; | 97 bool m_bDoModalFlag; |
99 }; | 98 }; |
100 | 99 |
101 #endif // XFA_FWL_CORE_CFWL_FORM_H_ | 100 #endif // XFA_FWL_CORE_CFWL_FORM_H_ |
OLD | NEW |