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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 }; | 96 }; |
97 | 97 |
98 class IFWL_ListBoxCompare { | 98 class IFWL_ListBoxCompare { |
99 public: | 99 public: |
100 virtual ~IFWL_ListBoxCompare() {} | 100 virtual ~IFWL_ListBoxCompare() {} |
101 virtual int32_t Compare(IFWL_ListItem* hLeft, IFWL_ListItem* hRight) = 0; | 101 virtual int32_t Compare(IFWL_ListItem* hLeft, IFWL_ListItem* hRight) = 0; |
102 }; | 102 }; |
103 | 103 |
104 class IFWL_ListBox : public IFWL_Widget { | 104 class IFWL_ListBox : public IFWL_Widget { |
105 public: | 105 public: |
106 static IFWL_ListBox* Create(const CFWL_WidgetImpProperties& properties, | |
107 IFWL_Widget* pOuter); | |
108 | |
109 IFWL_ListBox(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); | 106 IFWL_ListBox(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); |
110 ~IFWL_ListBox() override; | 107 ~IFWL_ListBox() override; |
111 | 108 |
112 // IFWL_Widget | 109 // IFWL_Widget |
113 FWL_Error GetClassName(CFX_WideString& wsClass) const override; | 110 FWL_Error GetClassName(CFX_WideString& wsClass) const override; |
114 FWL_Type GetClassID() const override; | 111 FWL_Type GetClassID() const override; |
115 FWL_Error Initialize() override; | 112 FWL_Error Initialize() override; |
116 FWL_Error Finalize() override; | 113 FWL_Error Finalize() override; |
117 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 114 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
118 FWL_Error Update() override; | 115 FWL_Error Update() override; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 198 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
202 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); | 199 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); |
203 void OnKeyDown(CFWL_MsgKey* pMsg); | 200 void OnKeyDown(CFWL_MsgKey* pMsg); |
204 void OnVK(IFWL_ListItem* hItem, FX_BOOL bShift, FX_BOOL bCtrl); | 201 void OnVK(IFWL_ListItem* hItem, FX_BOOL bShift, FX_BOOL bCtrl); |
205 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 202 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
206 void DispatchSelChangedEv(); | 203 void DispatchSelChangedEv(); |
207 IFWL_ListBox* m_pOwner; | 204 IFWL_ListBox* m_pOwner; |
208 }; | 205 }; |
209 | 206 |
210 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ | 207 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ |
OLD | NEW |