You.i Engine
YiActivityIndicatorView.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_ACTIVITY_INDICATOR_VIEW_H_
3 #define _YI_ACTIVITY_INDICATOR_VIEW_H_
4 
6 #include "signal/YiSignal.h"
7 #include "utility/YiTimer.h"
8 #include "view/YiSceneView.h"
9 
35 {
36 public:
38  virtual ~CYIActivityIndicatorView();
39 
40  virtual bool Init() override;
41 
47  void Start();
48 
54  void Stop();
55 
61  void SetStartDelay(uint32_t startDelayMs);
62 
65 
66 protected:
70  void Restart();
74  void StartNow();
79 
83 
85 
86 private:
88 };
89 
92 #endif // _YI_ACTIVITY_INDICATOR_VIEW_H_
The base class for the timeline framework.
Definition: YiAbstractTimeline.h:29
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:122
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
State
Definition: YiAnimationToggleController.h:26
This controller can be used to animate between two visual states using one or two timelines...
Definition: YiAnimationToggleController.h:20
void SetStartDelay(uint32_t startDelayMs)
CYISignal Ended
Emitted after the 'Out' timeline ends.
Definition: YiActivityIndicatorView.h:64
CYIAbstractTimeline * m_pLoopTimeline
Definition: YiActivityIndicatorView.h:80
A low-precision timer driven by the update loop.
Definition: YiTimer.h:27
CYIAnimationToggleController m_ActivityIndicatorVisibilityController
Definition: YiActivityIndicatorView.h:81
CYIActivityIndicatorView is a view that runs a timeline in a loop, showing that some processing is ta...
Definition: YiActivityIndicatorView.h:34
CYITimer m_startDelayTimer
Definition: YiActivityIndicatorView.h:82
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
CYISignal Started
Emitted after the 'In' timeline ends.
Definition: YiActivityIndicatorView.h:63
Signals and slots are a thread-safe and flexible communication framework that will allow various obje...
Definition: YiSignal.h:168
virtual ~CYIActivityIndicatorView()
void OnVisibilityToggled(CYIAnimationToggleController::State state)
virtual bool Init() override