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 _FWL_SPINBUTTON_H | 7 #ifndef _FWL_SPINBUTTON_H |
8 #define _FWL_SPINBUTTON_H | 8 #define _FWL_SPINBUTTON_H |
9 class CFWL_WidgetImpProperties; | 9 class CFWL_WidgetImpProperties; |
10 class IFWL_Widget; | 10 class IFWL_Widget; |
(...skipping 12 matching lines...) Expand all Loading... |
23 #define FWL_WGTHITTEST_SPB_UpButton (FWL_WGTHITTEST_MAX + 1) | 23 #define FWL_WGTHITTEST_SPB_UpButton (FWL_WGTHITTEST_MAX + 1) |
24 #define FWL_WGTHITTEST_SPB_DownButton (FWL_WGTHITTEST_MAX + 2) | 24 #define FWL_WGTHITTEST_SPB_DownButton (FWL_WGTHITTEST_MAX + 2) |
25 #define FWL_EVT_SPB_Click L"FWL_EVENT_SPB_Click" | 25 #define FWL_EVT_SPB_Click L"FWL_EVENT_SPB_Click" |
26 #define FWL_EVTHASH_SPB_Click 2927651187 | 26 #define FWL_EVTHASH_SPB_Click 2927651187 |
27 BEGIN_FWL_EVENT_DEF(CFWL_EvtSpbClick, FWL_EVTHASH_SPB_Click) | 27 BEGIN_FWL_EVENT_DEF(CFWL_EvtSpbClick, FWL_EVTHASH_SPB_Click) |
28 FX_BOOL m_bUp; | 28 FX_BOOL m_bUp; |
29 END_FWL_EVENT_DEF | 29 END_FWL_EVENT_DEF |
30 | 30 |
31 class IFWL_SpinButton : public IFWL_Widget { | 31 class IFWL_SpinButton : public IFWL_Widget { |
32 public: | 32 public: |
33 IFWL_SpinButton(); | 33 static IFWL_SpinButton* Create(const CFWL_WidgetImpProperties& properties, |
34 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 34 IFWL_Widget* pOuter); |
35 IFWL_Widget* pOuter); | 35 |
36 FWL_ERR EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE); | 36 FWL_ERR EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE); |
37 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE); | 37 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE); |
| 38 |
| 39 protected: |
| 40 IFWL_SpinButton(); |
38 }; | 41 }; |
39 #endif | 42 #endif |
OLD | NEW |