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_SPINBUTTON_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_ |
9 | 9 |
10 #include "xfa/fwl/core/cfwl_event.h" | 10 #include "xfa/fwl/core/cfwl_event.h" |
11 #include "xfa/fxfa/include/cxfa_eventparam.h" | 11 #include "xfa/fxfa/cxfa_eventparam.h" |
12 | 12 |
13 #define FWL_CLASS_SpinButton L"FWL_SPINBUTTON" | 13 #define FWL_CLASS_SpinButton L"FWL_SPINBUTTON" |
14 #define FWL_STYLEEXE_SPB_Vert (1L << 0) | 14 #define FWL_STYLEEXE_SPB_Vert (1L << 0) |
15 | 15 |
16 FWL_EVENT_DEF(CFWL_EvtSpbClick, CFWL_EventType::Click, FX_BOOL m_bUp;) | 16 FWL_EVENT_DEF(CFWL_EvtSpbClick, CFWL_EventType::Click, FX_BOOL m_bUp;) |
17 | 17 |
18 class IFWL_SpinButton : public IFWL_Widget { | 18 class IFWL_SpinButton : public IFWL_Widget { |
19 public: | 19 public: |
20 static IFWL_SpinButton* Create(const CFWL_WidgetImpProperties& properties, | 20 static IFWL_SpinButton* Create(const CFWL_WidgetImpProperties& properties, |
21 IFWL_Widget* pOuter); | 21 IFWL_Widget* pOuter); |
22 | 22 |
23 FWL_Error EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE); | 23 FWL_Error EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE); |
24 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE); | 24 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE); |
25 | 25 |
26 protected: | 26 protected: |
27 IFWL_SpinButton(); | 27 IFWL_SpinButton(); |
28 }; | 28 }; |
29 | 29 |
30 #endif // XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_ | 30 #endif // XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_ |
OLD | NEW |