| 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_IFWL_LISTBOX_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
| 8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/ifwl_widget.h" | 10 #include "xfa/fwl/core/ifwl_widget.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #define FWL_STYLEEXT_LTB_Check (1L << 9) | 27 #define FWL_STYLEEXT_LTB_Check (1L << 9) |
| 28 #define FWL_STYLEEXT_LTB_AlignMask (3L << 4) | 28 #define FWL_STYLEEXT_LTB_AlignMask (3L << 4) |
| 29 #define FWL_STYLEEXT_LTB_ShowScrollBarFocus (1L << 10) | 29 #define FWL_STYLEEXT_LTB_ShowScrollBarFocus (1L << 10) |
| 30 #define FWL_ITEMSTATE_LTB_Selected (1L << 0) | 30 #define FWL_ITEMSTATE_LTB_Selected (1L << 0) |
| 31 #define FWL_ITEMSTATE_LTB_Focused (1L << 1) | 31 #define FWL_ITEMSTATE_LTB_Focused (1L << 1) |
| 32 #define FWL_ITEMSTATE_LTB_Checked (1L << 2) | 32 #define FWL_ITEMSTATE_LTB_Checked (1L << 2) |
| 33 | 33 |
| 34 typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM; | 34 typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM; |
| 35 | 35 |
| 36 class CFX_DIBitmap; | 36 class CFX_DIBitmap; |
| 37 class IFWL_ListBoxDP; | |
| 38 | |
| 39 struct FWL_ListBoxItemData { | |
| 40 IFWL_ListBoxDP* pDataProvider; | |
| 41 int32_t iIndex; | |
| 42 }; | |
| 43 | 37 |
| 44 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, CFWL_EventType::SelectChanged) | 38 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, CFWL_EventType::SelectChanged) |
| 45 CFX_Int32Array iarraySels; | 39 CFX_Int32Array iarraySels; |
| 46 END_FWL_EVENT_DEF | 40 END_FWL_EVENT_DEF |
| 47 | 41 |
| 48 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, CFWL_EventType::DrawItem) | 42 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, CFWL_EventType::DrawItem) |
| 49 CFX_Graphics* m_pGraphics; | 43 CFX_Graphics* m_pGraphics; |
| 50 CFX_Matrix m_matrix; | 44 CFX_Matrix m_matrix; |
| 51 int32_t m_index; | 45 int32_t m_index; |
| 52 CFX_RectF m_rect; | 46 CFX_RectF m_rect; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); | 107 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); |
| 114 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); | 108 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); |
| 115 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); | 109 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); |
| 116 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); | 110 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); |
| 117 | 111 |
| 118 protected: | 112 protected: |
| 119 IFWL_ListBox(); | 113 IFWL_ListBox(); |
| 120 }; | 114 }; |
| 121 | 115 |
| 122 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ | 116 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
| OLD | NEW |