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 28 matching lines...) Expand all Loading... |
39 #define FWL_PARTSTATE_LTB_Normal (0L << 0) | 39 #define FWL_PARTSTATE_LTB_Normal (0L << 0) |
40 #define FWL_PARTSTATE_LTB_Selected (1L << 0) | 40 #define FWL_PARTSTATE_LTB_Selected (1L << 0) |
41 #define FWL_PARTSTATE_LTB_Disabled (2L << 0) | 41 #define FWL_PARTSTATE_LTB_Disabled (2L << 0) |
42 #define FWL_PARTSTATE_LTB_Focused (1L << 2) | 42 #define FWL_PARTSTATE_LTB_Focused (1L << 2) |
43 #define FWL_PARTSTATE_LTB_UnChecked (0L << 3) | 43 #define FWL_PARTSTATE_LTB_UnChecked (0L << 3) |
44 #define FWL_PARTSTATE_LTB_Checked (1L << 3) | 44 #define FWL_PARTSTATE_LTB_Checked (1L << 3) |
45 #define FWL_PARTSTATE_LTB_Mask (3L << 0) | 45 #define FWL_PARTSTATE_LTB_Mask (3L << 0) |
46 #define FWL_WGTHITTEST_LTB_Item FWL_WGTHITTEST_MAX + 1 | 46 #define FWL_WGTHITTEST_LTB_Item FWL_WGTHITTEST_MAX + 1 |
47 #define FWL_WGTHITTEST_LTB_HScrollBar FWL_WGTHITTEST_MAX + 2 | 47 #define FWL_WGTHITTEST_LTB_HScrollBar FWL_WGTHITTEST_MAX + 2 |
48 #define FWL_WGTHITTEST_LTB_VScrollBar FWL_WGTHITTEST_MAX + 3 | 48 #define FWL_WGTHITTEST_LTB_VScrollBar FWL_WGTHITTEST_MAX + 3 |
49 #define FWL_EVT_LTB_SelChanged L"FWL_EVENT_LTB_SelChanged" | 49 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474 |
50 #define FWL_EVT_LTB_DrawItem L"FWL_EVENT_LTB_DrawItem" | |
51 #define FWL_EVTHASH_LTB_SelChanged 1701781688 | 50 #define FWL_EVTHASH_LTB_SelChanged 1701781688 |
52 #define FWL_EVTHASH_LTB_DrawItem 1050853991 | 51 #define FWL_EVTHASH_LTB_DrawItem 1050853991 |
53 | 52 |
54 typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM; | 53 typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM; |
55 | 54 |
56 class CFX_DIBitmap; | 55 class CFX_DIBitmap; |
57 class IFWL_ListBoxDP; | 56 class IFWL_ListBoxDP; |
58 | 57 |
59 struct FWL_ListBoxItemData { | 58 struct FWL_ListBoxItemData { |
60 IFWL_ListBoxDP* pDataProvider; | 59 IFWL_ListBoxDP* pDataProvider; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); | 132 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); |
134 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); | 133 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); |
135 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); | 134 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); |
136 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); | 135 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); |
137 | 136 |
138 protected: | 137 protected: |
139 IFWL_ListBox(); | 138 IFWL_ListBox(); |
140 }; | 139 }; |
141 | 140 |
142 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ | 141 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
OLD | NEW |