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_IFWL_SPINBUTTON_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_SPINBUTTON_H_ |
8 #define XFA_FWL_CORE_IFWL_SPINBUTTON_H_ | 8 #define XFA_FWL_CORE_IFWL_SPINBUTTON_H_ |
9 | 9 |
10 #include "xfa/fwl/core/cfwl_event.h" | 10 #include "xfa/fwl/core/cfwl_event.h" |
11 #include "xfa/fwl/core/ifwl_timer.h" | 11 #include "xfa/fwl/core/ifwl_timer.h" |
12 #include "xfa/fwl/core/ifwl_widget.h" | 12 #include "xfa/fwl/core/ifwl_widget.h" |
13 #include "xfa/fxfa/cxfa_eventparam.h" | 13 #include "xfa/fxfa/cxfa_eventparam.h" |
14 | 14 |
15 #define FWL_STYLEEXE_SPB_Vert (1L << 0) | 15 #define FWL_STYLEEXE_SPB_Vert (1L << 0) |
16 | 16 |
17 class CFWL_MsgMouse; | 17 class CFWL_MsgMouse; |
18 class CFWL_WidgetProperties; | 18 class CFWL_WidgetProperties; |
19 | 19 |
20 FWL_EVENT_DEF(CFWL_EvtSpbClick, CFWL_EventType::Click, bool m_bUp;) | |
21 | |
22 class IFWL_SpinButton : public IFWL_Widget { | 20 class IFWL_SpinButton : public IFWL_Widget { |
23 public: | 21 public: |
24 IFWL_SpinButton(const IFWL_App* app, | 22 IFWL_SpinButton(const IFWL_App* app, |
25 std::unique_ptr<CFWL_WidgetProperties> properties); | 23 std::unique_ptr<CFWL_WidgetProperties> properties); |
26 ~IFWL_SpinButton() override; | 24 ~IFWL_SpinButton() override; |
27 | 25 |
28 // IFWL_Widget | 26 // IFWL_Widget |
29 FWL_Type GetClassID() const override; | 27 FWL_Type GetClassID() const override; |
30 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 28 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
31 void Update() override; | 29 void Update() override; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 CFX_RectF m_rtDnButton; | 65 CFX_RectF m_rtDnButton; |
68 uint32_t m_dwUpState; | 66 uint32_t m_dwUpState; |
69 uint32_t m_dwDnState; | 67 uint32_t m_dwDnState; |
70 int32_t m_iButtonIndex; | 68 int32_t m_iButtonIndex; |
71 bool m_bLButtonDwn; | 69 bool m_bLButtonDwn; |
72 IFWL_TimerInfo* m_pTimerInfo; | 70 IFWL_TimerInfo* m_pTimerInfo; |
73 IFWL_SpinButton::Timer m_Timer; | 71 IFWL_SpinButton::Timer m_Timer; |
74 }; | 72 }; |
75 | 73 |
76 #endif // XFA_FWL_CORE_IFWL_SPINBUTTON_H_ | 74 #endif // XFA_FWL_CORE_IFWL_SPINBUTTON_H_ |
OLD | NEW |