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_LISTBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_LISTBOX_H_ |
8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 class CFWL_ListBox : public CFWL_Widget { | 41 class CFWL_ListBox : public CFWL_Widget { |
42 public: | 42 public: |
43 explicit CFWL_ListBox(const CFWL_App* pApp, | 43 explicit CFWL_ListBox(const CFWL_App* pApp, |
44 std::unique_ptr<CFWL_WidgetProperties> properties, | 44 std::unique_ptr<CFWL_WidgetProperties> properties, |
45 CFWL_Widget* pOuter); | 45 CFWL_Widget* pOuter); |
46 ~CFWL_ListBox() override; | 46 ~CFWL_ListBox() override; |
47 | 47 |
48 // CFWL_Widget | 48 // CFWL_Widget |
49 FWL_Type GetClassID() const override; | 49 FWL_Type GetClassID() const override; |
50 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override; | |
51 void Update() override; | 50 void Update() override; |
52 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 51 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
53 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; | 52 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
54 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 53 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
55 void OnProcessMessage(CFWL_Message* pMessage) override; | 54 void OnProcessMessage(CFWL_Message* pMessage) override; |
56 void OnProcessEvent(CFWL_Event* pEvent) override; | 55 void OnProcessEvent(CFWL_Event* pEvent) override; |
57 void OnDrawWidget(CFX_Graphics* pGraphics, | 56 void OnDrawWidget(CFX_Graphics* pGraphics, |
58 const CFX_Matrix* pMatrix) override; | 57 const CFX_Matrix* pMatrix) override; |
59 | 58 |
60 int32_t CountItems(const CFWL_Widget* pWidget) const; | 59 int32_t CountItems(const CFWL_Widget* pWidget) const; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 int32_t m_iTTOAligns; | 160 int32_t m_iTTOAligns; |
162 CFWL_ListItem* m_hAnchor; | 161 CFWL_ListItem* m_hAnchor; |
163 FX_FLOAT m_fItemHeight; | 162 FX_FLOAT m_fItemHeight; |
164 FX_FLOAT m_fScorllBarWidth; | 163 FX_FLOAT m_fScorllBarWidth; |
165 bool m_bLButtonDown; | 164 bool m_bLButtonDown; |
166 IFWL_ThemeProvider* m_pScrollBarTP; | 165 IFWL_ThemeProvider* m_pScrollBarTP; |
167 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; | 166 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; |
168 }; | 167 }; |
169 | 168 |
170 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ | 169 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ |
OLD | NEW |