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_COMBOBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // IFWL_ListBoxDP | 70 // IFWL_ListBoxDP |
71 int32_t CountItems(const IFWL_Widget* pWidget) override; | 71 int32_t CountItems(const IFWL_Widget* pWidget) override; |
72 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, int32_t nIndex) override; | 72 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, int32_t nIndex) override; |
73 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; | 73 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; |
74 bool SetItemIndex(IFWL_Widget* pWidget, | 74 bool SetItemIndex(IFWL_Widget* pWidget, |
75 CFWL_ListItem* pItem, | 75 CFWL_ListItem* pItem, |
76 int32_t nIndex) override; | 76 int32_t nIndex) override; |
77 | 77 |
78 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; | 78 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; |
79 FWL_Error GetItemText(IFWL_Widget* pWidget, | 79 void GetItemText(IFWL_Widget* pWidget, |
80 CFWL_ListItem* pItem, | 80 CFWL_ListItem* pItem, |
81 CFX_WideString& wsText) override; | 81 CFX_WideString& wsText) override; |
82 FWL_Error GetItemRect(IFWL_Widget* pWidget, | 82 void GetItemRect(IFWL_Widget* pWidget, |
83 CFWL_ListItem* pItem, | 83 CFWL_ListItem* pItem, |
84 CFX_RectF& rtItem) override; | 84 CFX_RectF& rtItem) override; |
85 void* GetItemData(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; | 85 void* GetItemData(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; |
86 FWL_Error SetItemStyles(IFWL_Widget* pWidget, | 86 void SetItemStyles(IFWL_Widget* pWidget, |
87 CFWL_ListItem* pItem, | 87 CFWL_ListItem* pItem, |
88 uint32_t dwStyle) override; | 88 uint32_t dwStyle) override; |
89 FWL_Error SetItemText(IFWL_Widget* pWidget, | 89 void SetItemText(IFWL_Widget* pWidget, |
90 CFWL_ListItem* pItem, | 90 CFWL_ListItem* pItem, |
91 const FX_WCHAR* pszText) override; | 91 const FX_WCHAR* pszText) override; |
92 FWL_Error SetItemRect(IFWL_Widget* pWidget, | 92 void SetItemRect(IFWL_Widget* pWidget, |
93 CFWL_ListItem* pItem, | 93 CFWL_ListItem* pItem, |
94 const CFX_RectF& rtItem) override; | 94 const CFX_RectF& rtItem) override; |
95 FX_FLOAT GetItemHeight(IFWL_Widget* pWidget) override; | 95 FX_FLOAT GetItemHeight(IFWL_Widget* pWidget) override; |
96 CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget, | 96 CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget, |
97 CFWL_ListItem* pItem) override; | 97 CFWL_ListItem* pItem) override; |
98 FWL_Error GetItemCheckRect(IFWL_Widget* pWidget, | 98 void GetItemCheckRect(IFWL_Widget* pWidget, |
99 CFWL_ListItem* pItem, | 99 CFWL_ListItem* pItem, |
100 CFX_RectF& rtCheck) override; | 100 CFX_RectF& rtCheck) override; |
101 FWL_Error SetItemCheckRect(IFWL_Widget* pWidget, | 101 void SetItemCheckRect(IFWL_Widget* pWidget, |
102 CFWL_ListItem* pItem, | 102 CFWL_ListItem* pItem, |
103 const CFX_RectF& rtCheck) override; | 103 const CFX_RectF& rtCheck) override; |
104 uint32_t GetItemCheckState(IFWL_Widget* pWidget, | 104 uint32_t GetItemCheckState(IFWL_Widget* pWidget, |
105 CFWL_ListItem* pItem) override; | 105 CFWL_ListItem* pItem) override; |
106 FWL_Error SetItemCheckState(IFWL_Widget* pWidget, | 106 void SetItemCheckState(IFWL_Widget* pWidget, |
107 CFWL_ListItem* pItem, | 107 CFWL_ListItem* pItem, |
108 uint32_t dwCheckState) override; | 108 uint32_t dwCheckState) override; |
109 | 109 |
110 // IFWL_ComboBoxDP | 110 // IFWL_ComboBoxDP |
111 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override; | 111 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override; |
112 | 112 |
113 private: | 113 private: |
114 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; | 114 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; |
115 FX_FLOAT m_fMaxListHeight; | 115 FX_FLOAT m_fMaxListHeight; |
116 FX_FLOAT m_fItemHeight; | 116 FX_FLOAT m_fItemHeight; |
117 }; | 117 }; |
118 | 118 |
119 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ | 119 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
OLD | NEW |