| 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_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 PictureBox, | 47 PictureBox, |
| 48 PushButton, | 48 PushButton, |
| 49 ScrollBar, | 49 ScrollBar, |
| 50 SpinButton, | 50 SpinButton, |
| 51 ToolTip | 51 ToolTip |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 class CFWL_AppImp; | 54 class CFWL_AppImp; |
| 55 class CFWL_MsgKey; | 55 class CFWL_MsgKey; |
| 56 class CFWL_Widget; | 56 class CFWL_Widget; |
| 57 class CFWL_WidgetImpProperties; | 57 class CFWL_WidgetProperties; |
| 58 class CFWL_WidgetMgr; | 58 class CFWL_WidgetMgr; |
| 59 class IFWL_App; | 59 class IFWL_App; |
| 60 class IFWL_DataProvider; | 60 class IFWL_DataProvider; |
| 61 class IFWL_ThemeProvider; | 61 class IFWL_ThemeProvider; |
| 62 class IFWL_Widget; | 62 class IFWL_Widget; |
| 63 enum class FWL_Type; | 63 enum class FWL_Type; |
| 64 | 64 |
| 65 class IFWL_Widget : public IFWL_WidgetDelegate { | 65 class IFWL_Widget : public IFWL_WidgetDelegate { |
| 66 public: | 66 public: |
| 67 ~IFWL_Widget() override; | 67 ~IFWL_Widget() override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 void SetAssociateWidget(CFWL_Widget* pAssociate); | 139 void SetAssociateWidget(CFWL_Widget* pAssociate); |
| 140 | 140 |
| 141 void SetFocus(bool bFocus); | 141 void SetFocus(bool bFocus); |
| 142 void Repaint(const CFX_RectF* pRect = nullptr); | 142 void Repaint(const CFX_RectF* pRect = nullptr); |
| 143 | 143 |
| 144 protected: | 144 protected: |
| 145 friend class CFWL_WidgetImpDelegate; | 145 friend class CFWL_WidgetImpDelegate; |
| 146 | 146 |
| 147 IFWL_Widget(const IFWL_App* app, | 147 IFWL_Widget(const IFWL_App* app, |
| 148 const CFWL_WidgetImpProperties& properties, | 148 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 149 IFWL_Widget* pOuter); | 149 IFWL_Widget* pOuter); |
| 150 | 150 |
| 151 bool IsEnabled() const; | 151 bool IsEnabled() const; |
| 152 bool IsVisible() const; | 152 bool IsVisible() const; |
| 153 bool IsActive() const; | 153 bool IsActive() const; |
| 154 bool IsOverLapper() const; | 154 bool IsOverLapper() const; |
| 155 bool IsPopup() const; | 155 bool IsPopup() const; |
| 156 bool IsChild() const; | 156 bool IsChild() const; |
| 157 bool IsLocked() const; | 157 bool IsLocked() const; |
| 158 bool IsOffscreen() const; | 158 bool IsOffscreen() const; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void DrawEdge(CFX_Graphics* pGraphics, | 208 void DrawEdge(CFX_Graphics* pGraphics, |
| 209 CFWL_Part iPartEdge, | 209 CFWL_Part iPartEdge, |
| 210 IFWL_ThemeProvider* pTheme, | 210 IFWL_ThemeProvider* pTheme, |
| 211 const CFX_Matrix* pMatrix = nullptr); | 211 const CFX_Matrix* pMatrix = nullptr); |
| 212 void NotifyDriver(); | 212 void NotifyDriver(); |
| 213 | 213 |
| 214 bool IsParent(IFWL_Widget* pParent); | 214 bool IsParent(IFWL_Widget* pParent); |
| 215 | 215 |
| 216 const IFWL_App* const m_pOwnerApp; | 216 const IFWL_App* const m_pOwnerApp; |
| 217 CFWL_WidgetMgr* const m_pWidgetMgr; | 217 CFWL_WidgetMgr* const m_pWidgetMgr; |
| 218 std::unique_ptr<CFWL_WidgetImpProperties> m_pProperties; | 218 std::unique_ptr<CFWL_WidgetProperties> m_pProperties; |
| 219 IFWL_Widget* m_pOuter; | 219 IFWL_Widget* m_pOuter; |
| 220 void* m_pLayoutItem; | 220 void* m_pLayoutItem; |
| 221 CFWL_Widget* m_pAssociate; | 221 CFWL_Widget* m_pAssociate; |
| 222 int32_t m_iLock; | 222 int32_t m_iLock; |
| 223 uint32_t m_nEventKey; | 223 uint32_t m_nEventKey; |
| 224 | 224 |
| 225 private: | 225 private: |
| 226 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 226 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 229 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
| OLD | NEW |