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_CFWL_COMBOBOX_H_ | 7 #ifndef XFA_FWL_CFWL_COMBOBOX_H_ |
8 #define XFA_FWL_CFWL_COMBOBOX_H_ | 8 #define XFA_FWL_CFWL_COMBOBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 26 matching lines...) Expand all Loading... |
37 #define FWL_STYLEEXT_CMB_EditJustified (1L << 8) | 37 #define FWL_STYLEEXT_CMB_EditJustified (1L << 8) |
38 #define FWL_STYLEEXT_CMB_EditDistributed (2L << 8) | 38 #define FWL_STYLEEXT_CMB_EditDistributed (2L << 8) |
39 #define FWL_STYLEEXT_CMB_EditHAlignMask (3L << 4) | 39 #define FWL_STYLEEXT_CMB_EditHAlignMask (3L << 4) |
40 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6) | 40 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6) |
41 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8) | 41 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8) |
42 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10) | 42 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10) |
43 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10) | 43 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10) |
44 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) | 44 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) |
45 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) | 45 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) |
46 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) | 46 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) |
47 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) | |
48 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) | 47 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) |
49 | 48 |
50 class CFWL_ComboBox : public CFWL_Widget { | 49 class CFWL_ComboBox : public CFWL_Widget { |
51 public: | 50 public: |
52 explicit CFWL_ComboBox(const CFWL_App* pApp); | 51 explicit CFWL_ComboBox(const CFWL_App* pApp); |
53 ~CFWL_ComboBox() override; | 52 ~CFWL_ComboBox() override; |
54 | 53 |
55 // CFWL_Widget | 54 // CFWL_Widget |
56 FWL_Type GetClassID() const override; | 55 FWL_Type GetClassID() const override; |
57 void ModifyStylesEx(uint32_t dwStylesExAdded, | 56 void ModifyStylesEx(uint32_t dwStylesExAdded, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? | 162 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? |
164 bool m_bLButtonDown; | 163 bool m_bLButtonDown; |
165 bool m_bUpFormHandler; | 164 bool m_bUpFormHandler; |
166 int32_t m_iCurSel; | 165 int32_t m_iCurSel; |
167 int32_t m_iBtnState; | 166 int32_t m_iBtnState; |
168 FX_FLOAT m_fComboFormHandler; | 167 FX_FLOAT m_fComboFormHandler; |
169 FX_FLOAT m_fItemHeight; | 168 FX_FLOAT m_fItemHeight; |
170 }; | 169 }; |
171 | 170 |
172 #endif // XFA_FWL_CFWL_COMBOBOX_H_ | 171 #endif // XFA_FWL_CFWL_COMBOBOX_H_ |
OLD | NEW |