| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual void SetItemCheckRect(IFWL_Widget* pWidget, | 69 virtual void SetItemCheckRect(IFWL_Widget* pWidget, |
| 70 CFWL_ListItem* pItem, | 70 CFWL_ListItem* pItem, |
| 71 const CFX_RectF& rtCheck) = 0; | 71 const CFX_RectF& rtCheck) = 0; |
| 72 virtual uint32_t GetItemCheckState(IFWL_Widget* pWidget, | 72 virtual uint32_t GetItemCheckState(IFWL_Widget* pWidget, |
| 73 CFWL_ListItem* pItem) = 0; | 73 CFWL_ListItem* pItem) = 0; |
| 74 virtual void SetItemCheckState(IFWL_Widget* pWidget, | 74 virtual void SetItemCheckState(IFWL_Widget* pWidget, |
| 75 CFWL_ListItem* pItem, | 75 CFWL_ListItem* pItem, |
| 76 uint32_t dwCheckState) = 0; | 76 uint32_t dwCheckState) = 0; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 IFWL_ListBox(const IFWL_App* app, | 79 IFWL_ListBox(const CFWL_App* app, |
| 80 std::unique_ptr<CFWL_WidgetProperties> properties, | 80 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 81 IFWL_Widget* pOuter); | 81 IFWL_Widget* pOuter); |
| 82 ~IFWL_ListBox() override; | 82 ~IFWL_ListBox() override; |
| 83 | 83 |
| 84 // IFWL_Widget | 84 // IFWL_Widget |
| 85 FWL_Type GetClassID() const override; | 85 FWL_Type GetClassID() const override; |
| 86 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 86 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
| 87 void Update() override; | 87 void Update() override; |
| 88 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 88 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 89 void DrawWidget(CFX_Graphics* pGraphics, | 89 void DrawWidget(CFX_Graphics* pGraphics, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 uint32_t m_dwTTOStyles; | 161 uint32_t m_dwTTOStyles; |
| 162 int32_t m_iTTOAligns; | 162 int32_t m_iTTOAligns; |
| 163 CFWL_ListItem* m_hAnchor; | 163 CFWL_ListItem* m_hAnchor; |
| 164 FX_FLOAT m_fItemHeight; | 164 FX_FLOAT m_fItemHeight; |
| 165 FX_FLOAT m_fScorllBarWidth; | 165 FX_FLOAT m_fScorllBarWidth; |
| 166 bool m_bLButtonDown; | 166 bool m_bLButtonDown; |
| 167 IFWL_ThemeProvider* m_pScrollBarTP; | 167 IFWL_ThemeProvider* m_pScrollBarTP; |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ | 170 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ |
| OLD | NEW |