You.i Engine
YiWebView.h
Go to the documentation of this file.
1 #ifndef _YI_WEB_VIEW_H_
2 #define _YI_WEB_VIEW_H_
3 
4 #include "view/YiSceneView.h"
5 
6 class CYIPlatformView;
9 
37 class CYIWebView : public CYISceneView
38 {
39 public:
40  CYIWebView();
41  virtual ~CYIWebView();
42 
43  virtual bool Init() override;
44 
55 
65  void SetWebViewController(std::unique_ptr<CYIWebViewController> pController);
66 
72  void SetOverpullEnabled(bool bEnabled);
73 
74 protected:
75 
79  virtual void OnLoadingFinished();
80 
84  virtual void OnBackButtonClicked();
85 
89  virtual void OnForwardButtonClicked();
90 
94 
95 private:
96  void UpdateButtonStates();
97  void ConnectWebViewController();
98 
99  std::unique_ptr<CYIWebViewController> m_pWebViewController;
100 
102 };
103 
104 #endif
CYIPlatformView * m_pContentView
Definition: YiWebView.h:93
virtual ~CYIWebView()
CYIWebViewController * GetWebViewController()
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
void SetWebViewController(std::unique_ptr< CYIWebViewController > pController)
A visual representation of web content with basic navigation controls.
Definition: YiWebView.h:37
virtual void OnLoadingFinished()
virtual bool Init() override
void SetOverpullEnabled(bool bEnabled)
CYIPushButtonView * m_pBackButton
Definition: YiWebView.h:91
virtual void OnForwardButtonClicked()
Provides an implementation of a button which accepts user interaction in the form of a press and rele...
Definition: YiPushButtonView.h:35
CYIPushButtonView * m_pForwardButton
Definition: YiWebView.h:92
CYIPlatformView is a specialized view which combines the uses of an engine view (created through view...
Definition: YiPlatformView.h:25
Provides an interface to a platform web view, if available.
Definition: YiWebViewController.h:36
virtual void OnBackButtonClicked()