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_LISTBOX_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_LISTBOX_H_ |
8 #define XFA_FWL_CORE_IFWL_LISTBOX_H_ | 8 #define XFA_FWL_CORE_IFWL_LISTBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 }; | 101 }; |
102 | 102 |
103 class IFWL_ListBox : public IFWL_Widget { | 103 class IFWL_ListBox : public IFWL_Widget { |
104 public: | 104 public: |
105 IFWL_ListBox(const IFWL_App* app, | 105 IFWL_ListBox(const IFWL_App* app, |
106 const CFWL_WidgetImpProperties& properties, | 106 const CFWL_WidgetImpProperties& properties, |
107 IFWL_Widget* pOuter); | 107 IFWL_Widget* pOuter); |
108 ~IFWL_ListBox() override; | 108 ~IFWL_ListBox() override; |
109 | 109 |
110 // IFWL_Widget | 110 // IFWL_Widget |
111 void Initialize() override; | |
112 void Finalize() override; | |
113 FWL_Type GetClassID() const override; | 111 FWL_Type GetClassID() const override; |
114 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 112 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
115 FWL_Error Update() override; | 113 FWL_Error Update() override; |
116 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 114 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
117 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 115 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
118 const CFX_Matrix* pMatrix = nullptr) override; | 116 const CFX_Matrix* pMatrix = nullptr) override; |
119 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 117 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
120 | 118 |
121 int32_t CountSelItems(); | 119 int32_t CountSelItems(); |
122 IFWL_ListItem* GetSelItem(int32_t nIndexSel); | 120 IFWL_ListItem* GetSelItem(int32_t nIndexSel); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 196 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
199 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); | 197 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); |
200 void OnKeyDown(CFWL_MsgKey* pMsg); | 198 void OnKeyDown(CFWL_MsgKey* pMsg); |
201 void OnVK(IFWL_ListItem* hItem, FX_BOOL bShift, FX_BOOL bCtrl); | 199 void OnVK(IFWL_ListItem* hItem, FX_BOOL bShift, FX_BOOL bCtrl); |
202 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 200 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
203 void DispatchSelChangedEv(); | 201 void DispatchSelChangedEv(); |
204 IFWL_ListBox* m_pOwner; | 202 IFWL_ListBox* m_pOwner; |
205 }; | 203 }; |
206 | 204 |
207 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ | 205 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ |
OLD | NEW |