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

#include <InexorMouseManager.hpp>

Inheritance diagram for inexor::ui::input::InexorMouseManager:
inexor::ui::context::InexorContextProvider

Public Member Functions

 InexorMouseManager (CefRefPtr< inexor::ui::layer::InexorLayerManager > layer_manager, int screen_width, int screen_height)
 
bool IsVisible ()
 
void Hide ()
 
void Show ()
 
void SetScreenSize (int screen_width, int screen_height)
 
int GetAbsoluteX ()
 
int GetAbsoluteY ()
 
int GetScreenWidth ()
 
int GetScreenHeight ()
 
float GetScaledX ()
 
float GetScaledY ()
 
int GetWidth ()
 
int GetHeight ()
 
std::string GetTexture ()
 
void SetTexture (std::string texture)
 
void SendMouseMoveEvent (SDL_Event &e)
 
void SendMouseClickEvent (SDL_Event &e)
 
void SendMouseWheelEvent (SDL_Event &e)
 
void InitializeContext () override
 
bool Execute (const CefString &name, CefRefPtr< CefV8Value > object, const CefV8ValueList &arguments, CefRefPtr< CefV8Value > &retval, CefString &exception) override
 
bool Get (const CefString &name, const CefRefPtr< CefV8Value > object, CefRefPtr< CefV8Value > &retval, CefString &exception) override
 
bool Set (const CefString &name, const CefRefPtr< CefV8Value > object, const CefRefPtr< CefV8Value > value, CefString &exception) override
 
std::string GetContextName () override
 
CefRefPtr< CefV8Value > GetContext ()
 
void InitializeSubContexts ()
 
void AddSubContext (InexorContextProvider *sub_context)
 

Protected Member Functions

void CreateFunction (const CefString &name)
 
void CreateFunction (const CefString &name, CefRefPtr< CefV8Handler > handler)
 
void CreateVariable (const CefString &name, bool readonly=false)
 
void CreateSubContext (CefRefPtr< InexorContextProvider > sub_context)
 

Protected Attributes

std::list
< InexorContextProvider * > 
sub_contexts
 
CefRefPtr< CefV8Value > context
 

Private Member Functions

 IMPLEMENT_REFCOUNTING (InexorMouseManager)
 

Private Attributes

CefRefPtr
< inexor::ui::layer::InexorLayerManager
layer_manager
 
int screen_width
 
int screen_height
 
int x
 
int y
 
float scale_x
 
float scale_y
 
bool visible
 
std::string texture
 

Constructor & Destructor Documentation

inexor::ui::input::InexorMouseManager::InexorMouseManager ( CefRefPtr< inexor::ui::layer::InexorLayerManager layer_manager,
int  screen_width,
int  screen_height 
)
inline

Member Function Documentation

void inexor::ui::context::InexorContextProvider::AddSubContext ( InexorContextProvider sub_context)
inherited
void inexor::ui::context::InexorContextProvider::CreateFunction ( const CefString &  name)
protectedinherited
void inexor::ui::context::InexorContextProvider::CreateFunction ( const CefString &  name,
CefRefPtr< CefV8Handler >  handler 
)
protectedinherited
void inexor::ui::context::InexorContextProvider::CreateSubContext ( CefRefPtr< InexorContextProvider sub_context)
protectedinherited
void inexor::ui::context::InexorContextProvider::CreateVariable ( const CefString &  name,
bool  readonly = false 
)
protectedinherited
bool inexor::ui::input::InexorMouseManager::Execute ( const CefString &  name,
CefRefPtr< CefV8Value >  object,
const CefV8ValueList &  arguments,
CefRefPtr< CefV8Value > &  retval,
CefString &  exception 
)
override
bool inexor::ui::input::InexorMouseManager::Get ( const CefString &  name,
const CefRefPtr< CefV8Value >  object,
CefRefPtr< CefV8Value > &  retval,
CefString &  exception 
)
override
int inexor::ui::input::InexorMouseManager::GetAbsoluteX ( )
inline

References x.

int inexor::ui::input::InexorMouseManager::GetAbsoluteY ( )
inline

References y.

CefRefPtr< CefV8Value > inexor::ui::context::InexorContextProvider::GetContext ( )
inherited
std::string inexor::ui::input::InexorMouseManager::GetContextName ( )
inlineoverridevirtual
int inexor::ui::input::InexorMouseManager::GetHeight ( )
inline

References scale_y, and screen_height.

float inexor::ui::input::InexorMouseManager::GetScaledX ( )
inline

References screen_width, and x.

float inexor::ui::input::InexorMouseManager::GetScaledY ( )
inline

References screen_height, and y.

int inexor::ui::input::InexorMouseManager::GetScreenHeight ( )
inline

References screen_height.

int inexor::ui::input::InexorMouseManager::GetScreenWidth ( )
inline

References screen_width.

std::string inexor::ui::input::InexorMouseManager::GetTexture ( )
inline

References texture.

int inexor::ui::input::InexorMouseManager::GetWidth ( )
inline

References scale_x, and screen_width.

void inexor::ui::input::InexorMouseManager::Hide ( )
inline

References visible.

inexor::ui::input::InexorMouseManager::IMPLEMENT_REFCOUNTING ( InexorMouseManager  )
private
void inexor::ui::input::InexorMouseManager::InitializeContext ( )
overridevirtual
void inexor::ui::context::InexorContextProvider::InitializeSubContexts ( )
inherited
bool inexor::ui::input::InexorMouseManager::IsVisible ( )
inline

References visible.

void inexor::ui::input::InexorMouseManager::SendMouseClickEvent ( SDL_Event &  e)

References layer_manager.

void inexor::ui::input::InexorMouseManager::SendMouseMoveEvent ( SDL_Event &  e)

References layer_manager, x, and y.

void inexor::ui::input::InexorMouseManager::SendMouseWheelEvent ( SDL_Event &  e)

References layer_manager.

bool inexor::ui::input::InexorMouseManager::Set ( const CefString &  name,
const CefRefPtr< CefV8Value >  object,
const CefRefPtr< CefV8Value >  value,
CefString &  exception 
)
override
void inexor::ui::input::InexorMouseManager::SetScreenSize ( int  screen_width,
int  screen_height 
)
inline

References screen_height, and screen_width.

void inexor::ui::input::InexorMouseManager::SetTexture ( std::string  texture)
inline

References texture.

void inexor::ui::input::InexorMouseManager::Show ( )
inline

References visible.

Member Data Documentation

CefRefPtr<CefV8Value> inexor::ui::context::InexorContextProvider::context
protectedinherited
CefRefPtr<inexor::ui::layer::InexorLayerManager> inexor::ui::input::InexorMouseManager::layer_manager
private
float inexor::ui::input::InexorMouseManager::scale_x
private

Referenced by GetWidth().

float inexor::ui::input::InexorMouseManager::scale_y
private

Referenced by GetHeight().

int inexor::ui::input::InexorMouseManager::screen_height
private
int inexor::ui::input::InexorMouseManager::screen_width
private
std::list<InexorContextProvider*> inexor::ui::context::InexorContextProvider::sub_contexts
protectedinherited
std::string inexor::ui::input::InexorMouseManager::texture
private

Referenced by GetTexture(), and SetTexture().

bool inexor::ui::input::InexorMouseManager::visible
private

Referenced by Hide(), IsVisible(), and Show().

int inexor::ui::input::InexorMouseManager::x
private
int inexor::ui::input::InexorMouseManager::y
private

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