You.i Engine
YiActivityIndicatorView.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. 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 
10 
37 {
38 public:
40  virtual ~CYIActivityIndicatorView();
41 
42  virtual bool Init() override;
43 
49  void Start();
50 
56  void Stop();
57 
63  void SetStartDelay(uint32_t nStartDelayMs);
64 
67 
68 protected:
72  void Restart();
76  void StartNow();
81 
85 
87 
88 private:
90 };
91 
94 #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:114
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
This controller can be used to animate between two visual states using one or two timelines...
Definition: YiAnimationToggleController.h:21
CYISignal Ended
Emitted after the 'Out' timeline ends.
Definition: YiActivityIndicatorView.h:66
void SetStartDelay(uint32_t nStartDelayMs)
CYIAbstractTimeline * m_pLoopTimeline
Definition: YiActivityIndicatorView.h:82
A low-precision timer driven by the update loop.
Definition: YiTimer.h:29
CYIAnimationToggleController m_ActivityIndicatorVisibilityController
Definition: YiActivityIndicatorView.h:83
CYIActivityIndicatorView is a view that runs a timeline in a loop, showing that some processing is ta...
Definition: YiActivityIndicatorView.h:36
void OnVisibilityToggled(CYIAnimationToggleController::STATE eState)
CYITimer m_startDelayTimer
Definition: YiActivityIndicatorView.h:84
STATE
Definition: YiAnimationToggleController.h:28
CYISignal Started
Emitted after the 'In' timeline ends.
Definition: YiActivityIndicatorView.h:65
Signals and slots are a thread-safe and flexible communication framework that will allow various obje...
Definition: YiSignal.h:164
virtual ~CYIActivityIndicatorView()
virtual bool Init() override