Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InexorContextManager.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <list>
4 #include <string> // for string
5 
6 #include "include/cef_app.h"
7 #include "include/cef_base.h" // for CefString
8 #include "include/cef_render_process_handler.h"
9 #include "include/cef_v8.h" // for CefV8Value (p...
10 #include "include/wrapper/cef_helpers.h"
12 #include "inexor/network/SharedVar.hpp" // for SharedVar
13 #include "inexor/ui/context/InexorContextProvider.hpp" // for InexorContext...
14 
15 namespace inexor {
16 namespace rendering {
17 namespace screen {
19 }
20 }
21 }
22 
23 namespace inexor {
24 namespace ui {
25 namespace context {
26 
28 {
29 
30  public:
32 
33  // InexorCefContextProvider
34  void InitializeContext() override;
35  bool Execute(const CefString& name, CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval, CefString& exception) override;
36  bool Get(const CefString& name, const CefRefPtr<CefV8Value> object, CefRefPtr<CefV8Value>& retval, CefString& exception) override;
37  bool Set(const CefString& name, const CefRefPtr<CefV8Value> object, const CefRefPtr<CefV8Value> value, CefString& exception) override;
38  std::string GetContextName() override { return "inexor"; };
39 
40  private:
41 
42  // Include the default reference counting implementation.
44 
45 };
46 
47 }
48 }
49 }
void InitializeContext() override
Definition: InexorContextManager.cpp:9
SharedVar< int > scr_h
Definition: ScreenManager.hpp:87
Definition: InexorContextProvider.hpp:16
bool Set(const CefString &name, const CefRefPtr< CefV8Value > object, const CefRefPtr< CefV8Value > value, CefString &exception) override
Definition: InexorContextManager.cpp:26
bool Get(const CefString &name, const CefRefPtr< CefV8Value > object, CefRefPtr< CefV8Value > &retval, CefString &exception) override
Definition: InexorContextManager.cpp:19
Definition: InexorContextManager.hpp:27
char string[MAXSTRLEN]
cube-strings (char arrays of fixed size).
Definition: cube_types.hpp:18
GLsizei GLboolean const GLfloat * value
Definition: glexts.hpp:57
SharedVar wrapper for primitive/immutable objects.
Definition: SharedVar.hpp:55
InexorContextManager()
Definition: InexorContextManager.hpp:31
std::string GetContextName() override
Definition: InexorContextManager.hpp:38
IMPLEMENT_REFCOUNTING(InexorContextManager)
bool Execute(const CefString &name, CefRefPtr< CefV8Value > object, const CefV8ValueList &arguments, CefRefPtr< CefV8Value > &retval, CefString &exception) override
Definition: InexorContextManager.cpp:13
SharedVar< int > fullscreen
Definition: ScreenManager.hpp:88
SharedVar< int > scr_w
Definition: ScreenManager.hpp:87
SharedVar< int > vsync
Definition: ScreenManager.hpp:88