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_LISTBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_LISTBOX_H_ |
8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool bAutoSize = false); | 141 bool bAutoSize = false); |
142 FX_FLOAT GetMaxTextWidth(); | 142 FX_FLOAT GetMaxTextWidth(); |
143 FX_FLOAT GetScrollWidth(); | 143 FX_FLOAT GetScrollWidth(); |
144 | 144 |
145 void OnFocusChanged(CFWL_Message* pMsg, bool bSet = true); | 145 void OnFocusChanged(CFWL_Message* pMsg, bool bSet = true); |
146 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 146 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
147 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 147 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
148 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); | 148 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); |
149 void OnKeyDown(CFWL_MsgKey* pMsg); | 149 void OnKeyDown(CFWL_MsgKey* pMsg); |
150 void OnVK(CFWL_ListItem* hItem, bool bShift, bool bCtrl); | 150 void OnVK(CFWL_ListItem* hItem, bool bShift, bool bCtrl); |
151 bool OnScroll(CFWL_ScrollBar* pScrollBar, FWL_SCBCODE dwCode, FX_FLOAT fPos); | 151 bool OnScroll(CFWL_ScrollBar* pScrollBar, |
| 152 CFWL_EvtScroll::Code dwCode, |
| 153 FX_FLOAT fPos); |
152 | 154 |
153 CFX_RectF m_rtClient; | 155 CFX_RectF m_rtClient; |
154 CFX_RectF m_rtStatic; | 156 CFX_RectF m_rtStatic; |
155 CFX_RectF m_rtConent; | 157 CFX_RectF m_rtConent; |
156 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar; | 158 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar; |
157 std::unique_ptr<CFWL_ScrollBar> m_pVertScrollBar; | 159 std::unique_ptr<CFWL_ScrollBar> m_pVertScrollBar; |
158 uint32_t m_dwTTOStyles; | 160 uint32_t m_dwTTOStyles; |
159 int32_t m_iTTOAligns; | 161 int32_t m_iTTOAligns; |
160 CFWL_ListItem* m_hAnchor; | 162 CFWL_ListItem* m_hAnchor; |
161 FX_FLOAT m_fItemHeight; | 163 FX_FLOAT m_fItemHeight; |
162 FX_FLOAT m_fScorllBarWidth; | 164 FX_FLOAT m_fScorllBarWidth; |
163 bool m_bLButtonDown; | 165 bool m_bLButtonDown; |
164 IFWL_ThemeProvider* m_pScrollBarTP; | 166 IFWL_ThemeProvider* m_pScrollBarTP; |
165 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; | 167 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; |
166 }; | 168 }; |
167 | 169 |
168 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ | 170 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ |
OLD | NEW |