You.i Engine
YiPushButtonView.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_PUSH_BUTTON_VIEW_H_
3 #define _YI_PUSH_BUTTON_VIEW_H_
4 
6 
35 {
36 public:
38 
39  virtual ~CYIPushButtonView();
40 
41  virtual bool Init() override;
42 
53 protected:
54  virtual void OnEnable() override;
55  virtual void OnDisable() override;
56  virtual void OnPress() override;
57  virtual void OnRelease() override;
58  virtual void OnEnter() override;
59  virtual void OnLeave() override;
60  virtual void OnCancel() override;
61 
62  virtual void FinishAllPlayingTimelines() override;
63 
64  void OnPressCompleted();
65  void OnReleaseCompleted();
66 
73 
75 };
76 
79 #endif // _YI_PUSH_BUTTON_VIEW_H_
CYIAbstractTimeline * m_pPressAnim
Definition: YiPushButtonView.h:67
CYIAbstractTimeline * m_pDownUpAnim
Definition: YiPushButtonView.h:72
The base class for the timeline framework.
Definition: YiAbstractTimeline.h:29
CYISignal< int32_t > ButtonPressing
Definition: YiPushButtonView.h:43
CYISignal< int32_t > ButtonPressed
Definition: YiPushButtonView.h:45
virtual void OnCancel() override
Provides an abstraction for a button which accepts user interaction in the form of a press...
Definition: YiAbstractButtonView.h:25
virtual void OnEnter() override
virtual void OnEnable() override
virtual void FinishAllPlayingTimelines() override
virtual void OnLeave() override
CYISignal< int32_t > ButtonReleasing
Definition: YiPushButtonView.h:49
CYIAbstractTimeline * m_pDisableAnim
Definition: YiPushButtonView.h:69
CYISignal< int32_t > ButtonClicked
Definition: YiPushButtonView.h:47
void OnReleaseCompleted()
virtual void OnDisable() override
virtual ~CYIPushButtonView()
CYIAbstractTimeline * m_pOverUpAnim
Definition: YiPushButtonView.h:71
CYIAbstractTimeline * m_pReleaseAnim
Definition: YiPushButtonView.h:68
CYISignal< int32_t > ButtonReleased
Definition: YiPushButtonView.h:51
virtual void OnPress() override
virtual bool Init() override
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
virtual void OnRelease() override
Provides an implementation of a button which accepts user interaction in the form of a press and rele...
Definition: YiPushButtonView.h:34
CYIAbstractTimeline * m_pUpOverAnim
Definition: YiPushButtonView.h:70