You.i Engine
YiPlayerTimePopupView.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_PLAYER_TIME_POPUP_VIEW_H_
3 #define _YI_PLAYER_TIME_POPUP_VIEW_H_
4 
6 #include "view/YiSceneView.h"
7 
8 class CYITimeline;
9 class CYITextSceneNode;
10 
32 {
33 public:
35  virtual ~CYIPlayerTimePopupView();
36 
37  virtual bool Init() override;
38 
44  virtual void SetTime(uint64_t uTimeMs);
45 
50  virtual void SetTime(uint64_t uTimeMs, const CYIString &format);
51 
55  void SetFormat(const CYIString &format);
56 
60  void ShowPopup();
61 
66  void HidePopup();
67 
71  void Highlight(bool bHighlight);
72 
73 protected:
75 
76 protected:
82 
84 
85 private:
87 };
88 
93 #endif // _YI_PLAYER_TIME_POPUP_VIEW_H_
The base class for the timeline framework.
Definition: YiAbstractTimeline.h:29
CYIAnimationToggleController m_showHideToggleController
Definition: YiPlayerTimePopupView.h:80
#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
CYIString m_TimeFormat
Definition: YiPlayerTimePopupView.h:81
CYITextSceneNode * m_pTimeLabel
Definition: YiPlayerTimePopupView.h:78
A timeline which sources its data from a backing store.
Definition: YiTimeline.h:54
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
void Highlight(bool bHighlight)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
#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
virtual ~CYIPlayerTimePopupView()
virtual void SetTime(uint64_t uTimeMs)
void OnAnimationComplete(CYIAnimationToggleController::STATE eAnimationState)
virtual bool Init() override
A scene node type that renders text.
Definition: YiTextSceneNode.h:77
This view displays current playing time.
Definition: YiPlayerTimePopupView.h:31
bool m_bHighlighted
Definition: YiPlayerTimePopupView.h:79
CYIAbstractTimeline * m_pHighlightTimeline
Definition: YiPlayerTimePopupView.h:77
STATE
Definition: YiAnimationToggleController.h:28
void SetFormat(const CYIString &format)