You.i Engine
YiStackView.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_STACK_VIEW_H_
3 #define _YI_STACK_VIEW_H_
4 
5 #include "view/YiSceneView.h"
6 
7 class CYITimelineGroup;
8 
25 class CYIStackView : public CYISceneView
26 {
27 public:
28  CYIStackView();
29  virtual ~CYIStackView();
30 
31  virtual bool Init() override;
32 
40  bool SetActiveView(CYISceneView *pView);
41 
45  CYISceneView *GetActiveView() const;
46 
47 protected:
48  //used because opacity needs to be set to 0 due to US-222
49  void OnOutTimelineEnd();
50 
51  // The currently active view
53 
54  //the previously active view, can be removed after US-222
56  //timeline to combine the out and in timelines
57  std::unique_ptr<CYITimelineGroup> m_pSwitchTimeline;
58 
60 
61 private:
63 };
64 
67 #endif /* _YI_STACK_VIEW_H_ */
#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
virtual ~CYIStackView()
The base class for types of timeline groups.
Definition: YiTimelineGroup.h:25
CYISceneView * m_pActiveView
Definition: YiStackView.h:52
std::unique_ptr< CYITimelineGroup > m_pSwitchTimeline
Definition: YiStackView.h:57
CYIStackView displays one of it&#39;s child views at a time.
Definition: YiStackView.h:25
void OnOutTimelineEnd()
CYISceneView * GetActiveView() const
virtual bool Init() override
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
bool SetActiveView(CYISceneView *pView)
CYISceneView * m_pLastActiveView
Definition: YiStackView.h:55