You.i Engine
YiDevWidgetWithView.h
Go to the documentation of this file.
1 #ifndef _YI_DEV_WIDGET_WITH_VIEW_H_
2 #define _YI_DEV_WIDGET_WITH_VIEW_H_
3 
5 #include "debug/YiDevWidget.h"
6 
7 class CYISceneView;
8 
20 {
21 public:
22  CYIDevWidgetWithView(const CYIString &title, const CYIString &subtitle = "");
23  virtual ~CYIDevWidgetWithView();
24 
28  virtual void RefreshState() override;
29 
33  virtual void OnPanelItemClicked() override;
34 
35 protected:
39  virtual std::unique_ptr<CYISceneView> CreateView() = 0;
40 
44  virtual void DeleteView();
45 
49  virtual void OnShow(){};
50 
54  virtual void OnHide(){};
55 
58 
59 private:
60  void OnAnimationCompleted();
61 
64 };
65 
68 #endif
virtual std::unique_ptr< CYISceneView > CreateView()=0
#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
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
virtual void RefreshState() override
virtual void OnShow()
Definition: YiDevWidgetWithView.h:49
This controller can be used to animate between two visual states using one or two timelines...
Definition: YiAnimationToggleController.h:20
CYIDevWidgetWithView(const CYIString &title, const CYIString &subtitle="")
virtual void DeleteView()
CYIAnimationToggleController m_toggleController
Definition: YiDevWidgetWithView.h:54
CYISceneView * m_pView
Definition: YiDevWidgetWithView.h:57
A dev widget that displays a scene view when activated.
Definition: YiDevWidgetWithView.h:19
virtual void OnPanelItemClicked() override
The base class for all dev widgets.
Definition: YiDevWidget.h:36
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
virtual ~CYIDevWidgetWithView()
virtual void OnHide()
Definition: YiDevWidgetWithView.h:54