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) override; | |
47 void GetClientRect(CFX_RectF& rect) override; | 46 void GetClientRect(CFX_RectF& rect) override; |
48 void Update() override; | 47 void Update() override; |
49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 48 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
50 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; | 49 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
51 void OnProcessMessage(CFWL_Message* pMessage) override; | 50 void OnProcessMessage(CFWL_Message* pMessage) override; |
52 void OnDrawWidget(CFX_Graphics* pGraphics, | 51 void OnDrawWidget(CFX_Graphics* pGraphics, |
53 const CFX_Matrix* pMatrix) override; | 52 const CFX_Matrix* pMatrix) override; |
54 | 53 |
55 CFWL_Widget* DoModal(); | 54 CFWL_Widget* DoModal(); |
56 void EndDoModal(); | 55 void EndDoModal(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 FX_FLOAT m_fCYBorder; | 90 FX_FLOAT m_fCYBorder; |
92 int32_t m_iCaptureBtn; | 91 int32_t m_iCaptureBtn; |
93 int32_t m_iSysBox; | 92 int32_t m_iSysBox; |
94 bool m_bLButtonDown; | 93 bool m_bLButtonDown; |
95 bool m_bMaximized; | 94 bool m_bMaximized; |
96 bool m_bSetMaximize; | 95 bool m_bSetMaximize; |
97 bool m_bDoModalFlag; | 96 bool m_bDoModalFlag; |
98 }; | 97 }; |
99 | 98 |
100 #endif // XFA_FWL_CORE_CFWL_FORM_H_ | 99 #endif // XFA_FWL_CORE_CFWL_FORM_H_ |
OLD | NEW |