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_BASEWIDGET_FWL_LISTBOXIMP_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ |
8 #define XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ | 8 #define XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 13 matching lines...) Expand all Loading... |
24 public: | 24 public: |
25 CFWL_ListBoxImp(const CFWL_WidgetImpProperties& properties, | 25 CFWL_ListBoxImp(const CFWL_WidgetImpProperties& properties, |
26 IFWL_Widget* pOuter); | 26 IFWL_Widget* pOuter); |
27 ~CFWL_ListBoxImp(); | 27 ~CFWL_ListBoxImp(); |
28 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 28 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
29 virtual uint32_t GetClassID() const; | 29 virtual uint32_t GetClassID() const; |
30 virtual FWL_ERR Initialize(); | 30 virtual FWL_ERR Initialize(); |
31 virtual FWL_ERR Finalize(); | 31 virtual FWL_ERR Finalize(); |
32 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 32 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
33 virtual FWL_ERR Update(); | 33 virtual FWL_ERR Update(); |
34 virtual uint32_t HitTest(FX_FLOAT fx, FX_FLOAT fy); | 34 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); |
35 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, | 35 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, |
36 const CFX_Matrix* pMatrix = NULL); | 36 const CFX_Matrix* pMatrix = NULL); |
37 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 37 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
38 virtual int32_t CountSelItems(); | 38 virtual int32_t CountSelItems(); |
39 virtual FWL_HLISTITEM GetSelItem(int32_t nIndexSel); | 39 virtual FWL_HLISTITEM GetSelItem(int32_t nIndexSel); |
40 virtual int32_t GetSelIndex(int32_t nIndex); | 40 virtual int32_t GetSelIndex(int32_t nIndex); |
41 virtual FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); | 41 virtual FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); |
42 virtual FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); | 42 virtual FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); |
43 virtual FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); | 43 virtual FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); |
44 virtual FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); | 44 virtual FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 115 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
116 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); | 116 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); |
117 void OnKeyDown(CFWL_MsgKey* pMsg); | 117 void OnKeyDown(CFWL_MsgKey* pMsg); |
118 void OnVK(FWL_HLISTITEM hItem, FX_BOOL bShift, FX_BOOL bCtrl); | 118 void OnVK(FWL_HLISTITEM hItem, FX_BOOL bShift, FX_BOOL bCtrl); |
119 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 119 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
120 void DispatchSelChangedEv(); | 120 void DispatchSelChangedEv(); |
121 CFWL_ListBoxImp* m_pOwner; | 121 CFWL_ListBoxImp* m_pOwner; |
122 }; | 122 }; |
123 | 123 |
124 #endif // XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ | 124 #endif // XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ |
OLD | NEW |