Leviathan  0.8.0.0
Leviathan game engine
Leviathan::GUI Namespace Reference

Classes

class  CefApplication
 Handler for new render processes. More...
 
struct  CustomExtension
 
class  GuiManager
 Main GUI controller. More...
 
class  JSAsyncCustom
 Provides client applications and modules (not done) support for defining custom request responses. More...
 
class  JSNamedVarsAccessor
 Provides an accessor interface for javascript for accessing NamedVars. More...
 
class  JSNativeCoreAPI
 Handles javascript functions that have native extensions //. More...
 
class  LeviathanJavaScriptAsync
 Handles asynchronous javascript requests. More...
 
class  MainProcessSideHandler
 Handles messages sent to the main process from the render process that are directed towards an extension. More...
 
class  VideoPlayer
 VideoPlayer that uses ffmpeg to play videos on Ogre. More...
 
class  View
 A class that represents a single GUI layer that has it's own chromium browser. More...
 

Typedefs

using HandlerFactory = CefRefPtr< CefV8Handler >(*)(GUI::CefApplication *app)
 

Enumerations

enum  INPUT_MODE { INPUT_MODE::Menu, INPUT_MODE::Gameplay, INPUT_MODE::None }
 
enum  VIEW_SECURITYLEVEL { VIEW_SECURITYLEVEL_BLOCKED = 0, VIEW_SECURITYLEVEL_MINIMAL, VIEW_SECURITYLEVEL_NORMAL, VIEW_SECURITYLEVEL_ACCESS_ALL }
 Controls what functions can be called from the page. More...
 

Typedef Documentation

◆ HandlerFactory

using Leviathan::GUI::HandlerFactory = typedef CefRefPtr<CefV8Handler> (*)(GUI::CefApplication* app)

Definition at line 23 of file GuiCEFApplication.h.

Enumeration Type Documentation

◆ INPUT_MODE

This is the mode a View is in

Note
When mouse capture is enabled the View doesn't get any events until capture mode is disabled
Enumerator
Menu 

In this mode the View takes all key press events.

Gameplay 

In this mode the View will only take key presses when it has an active input box (this detection is done by a javascript callback that calls LeviathanJavaScriptAsync::OnQuery to notify the C++ side of the status)

None 

In this mode the View doesn't take any input under any circumstances.

Definition at line 12 of file GuiInputSettings.h.

12  {
14  Menu,
18  Gameplay,
20  None
21 };
In this mode the View doesn&#39;t take any input under any circumstances.
In this mode the View takes all key press events.

◆ VIEW_SECURITYLEVEL

Controls what functions can be called from the page.

Enumerator
VIEW_SECURITYLEVEL_BLOCKED 

The page is not allowed to access anything Except the notification about input element being focused

VIEW_SECURITYLEVEL_MINIMAL 

The page can view minimal information only and access some objects

Note
This is recommended for external "unsafe" pages, like a web page displayed during connecting to a server
VIEW_SECURITYLEVEL_NORMAL 

The page can view most settings and set some "safe" settings.

VIEW_SECURITYLEVEL_ACCESS_ALL 

The page can access all internal functions

Note
This is the recommended level for games' internal GUI page

Definition at line 26 of file GuiView.h.