Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
inexor::ui::InexorCefApp Class Reference

#include <InexorCefApp.hpp>

Inheritance diagram for inexor::ui::InexorCefApp:

Public Member Functions

 InexorCefApp (std::string instance_id, std::string host, std::string port, int width, int height)
 
void Destroy ()
 
CefRefPtr
< CefBrowserProcessHandler > 
GetBrowserProcessHandler () override
 
CefRefPtr
< context::InexorContextManager
GetContextManager ()
 
CefRefPtr
< input::InexorMouseManager
GetMouseManager ()
 
CefRefPtr
< input::InexorKeyboardManager
GetKeyboardManager ()
 
CefRefPtr
< layer::InexorLayerManager
GetLayerManager ()
 
CefRefPtr< layer::InexorHudLayerGetHudLayer ()
 
CefRefPtr
< layer::InexorConsoleLayer
GetConsoleLayer ()
 
CefRefPtr< layer::InexorAppLayerGetAppLayer ()
 
void SetScreenSize (int width, int height)
 
void OnContextInitialized () override
 
void OnContextCreated (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context)
 
bool HandleSdlEvent (SDL_Event &e)
 Handle SDL events for CEF. More...
 

Private Member Functions

void InitHudLayer (std::string instance_id, std::string host, std::string port)
 
void InitConsoleLayer (std::string instance_id, std::string host, std::string port)
 
void InitAppLayer (std::string instance_id, std::string host, std::string port)
 
 IMPLEMENT_REFCOUNTING (InexorCefApp)
 

Private Attributes

CefRefPtr
< context::InexorContextManager
context_manager
 
CefRefPtr
< input::InexorMouseManager
mouse_manager
 
CefRefPtr
< input::InexorKeyboardManager
keyboard_manager
 
CefRefPtr
< layer::InexorLayerManager
layer_manager
 
CefRefPtr< layer::InexorHudLayerhud_layer
 
CefRefPtr
< layer::InexorConsoleLayer
console_layer
 
CefRefPtr< layer::InexorAppLayerapp_layer
 

Constructor & Destructor Documentation

inexor::ui::InexorCefApp::InexorCefApp ( std::string  instance_id,
std::string  host,
std::string  port,
int  width,
int  height 
)

Member Function Documentation

void inexor::ui::InexorCefApp::Destroy ( )

References layer_manager.

CefRefPtr<layer::InexorAppLayer> inexor::ui::InexorCefApp::GetAppLayer ( )
inline

References app_layer.

CefRefPtr<CefBrowserProcessHandler> inexor::ui::InexorCefApp::GetBrowserProcessHandler ( )
inlineoverride
CefRefPtr<layer::InexorConsoleLayer> inexor::ui::InexorCefApp::GetConsoleLayer ( )
inline

References console_layer.

CefRefPtr<context::InexorContextManager> inexor::ui::InexorCefApp::GetContextManager ( )
inline

References context_manager.

CefRefPtr<layer::InexorHudLayer> inexor::ui::InexorCefApp::GetHudLayer ( )
inline

References hud_layer.

CefRefPtr<input::InexorKeyboardManager> inexor::ui::InexorCefApp::GetKeyboardManager ( )
inline

References keyboard_manager.

Referenced by HandleSdlEvent().

CefRefPtr<layer::InexorLayerManager> inexor::ui::InexorCefApp::GetLayerManager ( )
inline

References layer_manager.

CefRefPtr<input::InexorMouseManager> inexor::ui::InexorCefApp::GetMouseManager ( )
inline

References mouse_manager.

Referenced by HandleSdlEvent().

bool inexor::ui::InexorCefApp::HandleSdlEvent ( SDL_Event &  e)

Handle SDL events for CEF.

Returns
Whether this event was handled by CEF; if false the event should be handled by inexor

References GetKeyboardManager(), and GetMouseManager().

inexor::ui::InexorCefApp::IMPLEMENT_REFCOUNTING ( InexorCefApp  )
private
void inexor::ui::InexorCefApp::InitAppLayer ( std::string  instance_id,
std::string  host,
std::string  port 
)
private
void inexor::ui::InexorCefApp::InitConsoleLayer ( std::string  instance_id,
std::string  host,
std::string  port 
)
private
void inexor::ui::InexorCefApp::InitHudLayer ( std::string  instance_id,
std::string  host,
std::string  port 
)
private
void inexor::ui::InexorCefApp::OnContextCreated ( CefRefPtr< CefBrowser >  browser,
CefRefPtr< CefFrame >  frame,
CefRefPtr< CefV8Context >  context 
)
void inexor::ui::InexorCefApp::OnContextInitialized ( )
override

References layer_manager.

void inexor::ui::InexorCefApp::SetScreenSize ( int  width,
int  height 
)

References layer_manager, and mouse_manager.

Referenced by InexorCefApp().

Member Data Documentation

CefRefPtr<layer::InexorAppLayer> inexor::ui::InexorCefApp::app_layer
private

Referenced by GetAppLayer(), and InitAppLayer().

CefRefPtr<layer::InexorConsoleLayer> inexor::ui::InexorCefApp::console_layer
private
CefRefPtr<context::InexorContextManager> inexor::ui::InexorCefApp::context_manager
private
CefRefPtr<layer::InexorHudLayer> inexor::ui::InexorCefApp::hud_layer
private

Referenced by GetHudLayer(), and InitHudLayer().

CefRefPtr<input::InexorKeyboardManager> inexor::ui::InexorCefApp::keyboard_manager
private

Referenced by GetKeyboardManager(), and InexorCefApp().

CefRefPtr<layer::InexorLayerManager> inexor::ui::InexorCefApp::layer_manager
private
CefRefPtr<input::InexorMouseManager> inexor::ui::InexorCefApp::mouse_manager
private

The documentation for this class was generated from the following files: