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::layer::InexorLayer Class Reference

#include <InexorLayer.hpp>

Inheritance diagram for inexor::ui::layer::InexorLayer:

Public Member Functions

 InexorLayer (std::string name, int x, int y, int width, int height, std::string url)
 
 ~InexorLayer () override
 
std::string GetName ()
 
std::string GetUrl ()
 
InexorWindowInfo GetWindowInfo ()
 
CefBrowserSettings GetBrowserSettings ()
 
void Destroy ()
 
void Copy ()
 
void Paste ()
 
void Cut ()
 
void ShowDevTools ()
 
bool IsVisible ()
 A layer can be visible or hidden. More...
 
void SetVisibility (bool is_visible)
 
bool IsAcceptingKeyInput ()
 
bool IsAcceptingMouseInput ()
 
void SetIsAcceptingKeyInput (bool is_accepting_key_input)
 
void SetIsAcceptingMouseInput (bool is_accepting_mouse_input)
 
bool IsClosing ()
 
virtual CefRefPtr< InexorLayerGetClientHandler ()
 
CefRefPtr< CefRenderHandler > GetRenderHandler () override
 
virtual CefRefPtr
< InexorRenderHandler
GetInexorRenderHandler ()
 
virtual CefRefPtr< CefBrowser > GetBrowser ()
 
CefRefPtr< CefLifeSpanHandler > GetLifeSpanHandler () override
 
CefRefPtr< CefLoadHandler > GetLoadHandler () override
 
CefRefPtr< CefKeyboardHandler > GetKeyboardHandler () override
 
CefRefPtr< CefDisplayHandler > GetDisplayHandler () override
 
virtual CefRefPtr
< CefRequestContextHandler > 
GetRequestContextHandler ()
 
CefRefPtr< CefCookieManager > GetCookieManager () override
 
void OnAfterCreated (CefRefPtr< CefBrowser > browser) override
 
bool DoClose (CefRefPtr< CefBrowser > browser) override
 
void OnBeforeClose (CefRefPtr< CefBrowser > browser) override
 
void OnLoadError (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, ErrorCode errorCode, const CefString &errorText, const CefString &failedUrl) override
 
bool OnPreKeyEvent (CefRefPtr< CefBrowser > browser, const CefKeyEvent &key_event, CefEventHandle os_event, bool *is_keyboard_shortcut) override
 
bool OnKeyEvent (CefRefPtr< CefBrowser > browser, const CefKeyEvent &key_event, CefEventHandle os_event) override
 
void SendKeyEvent (const CefKeyEvent &event)
 
void OnAddressChange (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString &url) override
 
void OnStatusMessage (CefRefPtr< CefBrowser > browser, const CefString &value) override
 
bool OnConsoleMessage (CefRefPtr< CefBrowser > browser, const CefString &message, const CefString &source, int line) override
 

Private Member Functions

void UpdateFocus ()
 
 IMPLEMENT_REFCOUNTING (InexorLayer)
 

Private Attributes

std::string name
 
std::string url
 
bool is_visible
 
bool is_accepting_key_input
 
bool is_accepting_mouse_input
 
int browser_id
 
int browser_count
 
bool is_closing
 
InexorWindowInfo window_info
 
InexorBrowserSettings browser_settings
 
CefRefPtr< InexorRenderHandlerrender_handler
 
CefRefPtr< CefBrowser > browser
 
CefRefPtr< CefCookieManager > cookie_manager
 

Constructor & Destructor Documentation

inexor::ui::layer::InexorLayer::InexorLayer ( std::string  name,
int  x,
int  y,
int  width,
int  height,
std::string  url 
)
inexor::ui::layer::InexorLayer::~InexorLayer ( )
override

Member Function Documentation

void inexor::ui::layer::InexorLayer::Copy ( )

References browser.

void inexor::ui::layer::InexorLayer::Cut ( )

References browser.

void inexor::ui::layer::InexorLayer::Destroy ( )

References browser.

bool inexor::ui::layer::InexorLayer::DoClose ( CefRefPtr< CefBrowser >  browser)
override

References browser_id, and is_closing.

virtual CefRefPtr<CefBrowser> inexor::ui::layer::InexorLayer::GetBrowser ( )
inlinevirtual

References browser.

CefBrowserSettings inexor::ui::layer::InexorLayer::GetBrowserSettings ( )
inline

References browser_settings.

virtual CefRefPtr<InexorLayer> inexor::ui::layer::InexorLayer::GetClientHandler ( )
inlinevirtual
CefRefPtr<CefCookieManager> inexor::ui::layer::InexorLayer::GetCookieManager ( )
inlineoverride

References cookie_manager.

CefRefPtr<CefDisplayHandler> inexor::ui::layer::InexorLayer::GetDisplayHandler ( )
inlineoverride
virtual CefRefPtr<InexorRenderHandler> inexor::ui::layer::InexorLayer::GetInexorRenderHandler ( )
inlinevirtual

References render_handler.

CefRefPtr<CefKeyboardHandler> inexor::ui::layer::InexorLayer::GetKeyboardHandler ( )
inlineoverride
CefRefPtr<CefLifeSpanHandler> inexor::ui::layer::InexorLayer::GetLifeSpanHandler ( )
inlineoverride
CefRefPtr<CefLoadHandler> inexor::ui::layer::InexorLayer::GetLoadHandler ( )
inlineoverride
std::string inexor::ui::layer::InexorLayer::GetName ( )
inline

References name.

CefRefPtr<CefRenderHandler> inexor::ui::layer::InexorLayer::GetRenderHandler ( )
inlineoverride

References render_handler.

virtual CefRefPtr<CefRequestContextHandler> inexor::ui::layer::InexorLayer::GetRequestContextHandler ( )
inlinevirtual
std::string inexor::ui::layer::InexorLayer::GetUrl ( )
inline

References url.

InexorWindowInfo inexor::ui::layer::InexorLayer::GetWindowInfo ( )
inline

References window_info.

inexor::ui::layer::InexorLayer::IMPLEMENT_REFCOUNTING ( InexorLayer  )
private
bool inexor::ui::layer::InexorLayer::IsAcceptingKeyInput ( )
inline

References browser, and is_accepting_key_input.

bool inexor::ui::layer::InexorLayer::IsAcceptingMouseInput ( )
inline
bool inexor::ui::layer::InexorLayer::IsClosing ( )
inline

References is_closing.

bool inexor::ui::layer::InexorLayer::IsVisible ( )
inline

A layer can be visible or hidden.

References browser, and is_visible.

void inexor::ui::layer::InexorLayer::OnAddressChange ( CefRefPtr< CefBrowser >  browser,
CefRefPtr< CefFrame >  frame,
const CefString &  url 
)
override
void inexor::ui::layer::InexorLayer::OnAfterCreated ( CefRefPtr< CefBrowser >  browser)
override

References browser, browser_count, and browser_id.

void inexor::ui::layer::InexorLayer::OnBeforeClose ( CefRefPtr< CefBrowser >  browser)
override

References browser_count, and browser_id.

bool inexor::ui::layer::InexorLayer::OnConsoleMessage ( CefRefPtr< CefBrowser >  browser,
const CefString &  message,
const CefString &  source,
int  line 
)
override
bool inexor::ui::layer::InexorLayer::OnKeyEvent ( CefRefPtr< CefBrowser >  browser,
const CefKeyEvent &  key_event,
CefEventHandle  os_event 
)
override
void inexor::ui::layer::InexorLayer::OnLoadError ( CefRefPtr< CefBrowser >  browser,
CefRefPtr< CefFrame >  frame,
ErrorCode  errorCode,
const CefString &  errorText,
const CefString &  failedUrl 
)
override
bool inexor::ui::layer::InexorLayer::OnPreKeyEvent ( CefRefPtr< CefBrowser >  browser,
const CefKeyEvent &  key_event,
CefEventHandle  os_event,
bool *  is_keyboard_shortcut 
)
override
void inexor::ui::layer::InexorLayer::OnStatusMessage ( CefRefPtr< CefBrowser >  browser,
const CefString &  value 
)
override
void inexor::ui::layer::InexorLayer::Paste ( )

References browser.

void inexor::ui::layer::InexorLayer::SendKeyEvent ( const CefKeyEvent &  event)
inline

References browser.

void inexor::ui::layer::InexorLayer::SetIsAcceptingKeyInput ( bool  is_accepting_key_input)
void inexor::ui::layer::InexorLayer::SetIsAcceptingMouseInput ( bool  is_accepting_mouse_input)
void inexor::ui::layer::InexorLayer::SetVisibility ( bool  is_visible)
void inexor::ui::layer::InexorLayer::ShowDevTools ( )
void inexor::ui::layer::InexorLayer::UpdateFocus ( )
private

Member Data Documentation

CefRefPtr<CefBrowser> inexor::ui::layer::InexorLayer::browser
private
int inexor::ui::layer::InexorLayer::browser_count
private

Referenced by OnAfterCreated(), and OnBeforeClose().

int inexor::ui::layer::InexorLayer::browser_id
private
InexorBrowserSettings inexor::ui::layer::InexorLayer::browser_settings
private
CefRefPtr<CefCookieManager> inexor::ui::layer::InexorLayer::cookie_manager
private

Referenced by GetCookieManager(), and InexorLayer().

bool inexor::ui::layer::InexorLayer::is_accepting_key_input
private
bool inexor::ui::layer::InexorLayer::is_accepting_mouse_input
private
bool inexor::ui::layer::InexorLayer::is_closing
private

Referenced by DoClose(), and IsClosing().

bool inexor::ui::layer::InexorLayer::is_visible
private

Referenced by IsVisible(), and SetVisibility().

std::string inexor::ui::layer::InexorLayer::name
private

Referenced by GetName().

CefRefPtr<InexorRenderHandler> inexor::ui::layer::InexorLayer::render_handler
private
std::string inexor::ui::layer::InexorLayer::url
private

Referenced by GetUrl().

InexorWindowInfo inexor::ui::layer::InexorLayer::window_info
private

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