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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 class CFWL_MsgKillFocus; | 36 class CFWL_MsgKillFocus; |
37 class CFWL_MsgMouse; | 37 class CFWL_MsgMouse; |
38 class CFWL_MsgMouseWheel; | 38 class CFWL_MsgMouseWheel; |
39 class CFX_DIBitmap; | 39 class CFX_DIBitmap; |
40 | 40 |
41 FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, | 41 FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, |
42 CFWL_EventType::SelectChanged, | 42 CFWL_EventType::SelectChanged, |
43 CFX_Int32Array iarraySels;) | 43 CFX_Int32Array iarraySels;) |
44 | 44 |
45 FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, | |
46 CFWL_EventType::DrawItem, | |
47 CFX_Graphics* m_pGraphics; | |
48 CFX_Matrix m_matrix; | |
49 int32_t m_index; | |
50 CFX_RectF m_rect;) | |
51 | |
52 class IFWL_ListBoxDP : public IFWL_DataProvider { | 45 class IFWL_ListBoxDP : public IFWL_DataProvider { |
53 public: | 46 public: |
54 virtual int32_t CountItems(const IFWL_Widget* pWidget) const = 0; | 47 virtual int32_t CountItems(const IFWL_Widget* pWidget) const = 0; |
55 virtual CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, | 48 virtual CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, |
56 int32_t nIndex) const = 0; | 49 int32_t nIndex) const = 0; |
57 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) = 0; | 50 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) = 0; |
58 virtual uint32_t GetItemStyles(IFWL_Widget* pWidget, | 51 virtual uint32_t GetItemStyles(IFWL_Widget* pWidget, |
59 CFWL_ListItem* pItem) = 0; | 52 CFWL_ListItem* pItem) = 0; |
60 virtual void GetItemText(IFWL_Widget* pWidget, | 53 virtual void GetItemText(IFWL_Widget* pWidget, |
61 CFWL_ListItem* pItem, | 54 CFWL_ListItem* pItem, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 uint32_t m_dwTTOStyles; | 166 uint32_t m_dwTTOStyles; |
174 int32_t m_iTTOAligns; | 167 int32_t m_iTTOAligns; |
175 CFWL_ListItem* m_hAnchor; | 168 CFWL_ListItem* m_hAnchor; |
176 FX_FLOAT m_fItemHeight; | 169 FX_FLOAT m_fItemHeight; |
177 FX_FLOAT m_fScorllBarWidth; | 170 FX_FLOAT m_fScorllBarWidth; |
178 bool m_bLButtonDown; | 171 bool m_bLButtonDown; |
179 IFWL_ThemeProvider* m_pScrollBarTP; | 172 IFWL_ThemeProvider* m_pScrollBarTP; |
180 }; | 173 }; |
181 | 174 |
182 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ | 175 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ |
OLD | NEW |