You.i Engine
YiPlayerTimePopupView.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. 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 timeMs);
45 
50  virtual void SetTime(uint64_t timeMs, const CYIString &format);
51 
55  void SetFormat(const CYIString &format);
56 
60  void ShowPopup();
61 
66  void HidePopup();
67 
71  void Highlight(bool highlight);
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
void Highlight(bool highlight)
#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
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:53
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
State
Definition: YiAnimationToggleController.h:26
bool m_highlighted
Definition: YiPlayerTimePopupView.h:79
This controller can be used to animate between two visual states using one or two timelines...
Definition: YiAnimationToggleController.h:20
virtual ~CYIPlayerTimePopupView()
virtual void SetTime(uint64_t timeMs)
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
CYIAbstractTimeline * m_pHighlightTimeline
Definition: YiPlayerTimePopupView.h:77
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
void OnAnimationComplete(CYIAnimationToggleController::State animationState)
void SetFormat(const CYIString &format)