Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
TissueForge::event::KeyEvent Struct Reference

Public Member Functions

 KeyEvent (Magnum::Platform::GlfwApplication::KeyEvent *glfw_event=NULL)
 
HRESULT invoke ()
 
std::string keyName ()
 
bool keyAlt ()
 
bool keyCtrl ()
 
bool keyShift ()
 

Static Public Member Functions

static HRESULT invoke (Magnum::Platform::GlfwApplication::KeyEvent &ke)
 
static KeyEventDelegateHandle addDelegate (KeyEventDelegateType *_delegate)
 Adds an event delegate.
 
static KeyEventHandlerHandle addHandler (KeyEventHandlerType *_handler)
 Adds an event handler.
 
static KeyEventDelegateType * getDelegate (const KeyEventDelegateHandle &handle)
 Get an event delegate.
 
static KeyEventHandlerType * getHandler (const KeyEventHandlerHandle &handle)
 Get an event handler.
 
static bool removeDelegate (const KeyEventDelegateHandle &handle)
 Remove an event delegate.
 
static bool removeHandler (const KeyEventHandlerHandle &handle)
 Remove an event handler.
 

Public Attributes

Magnum::Platform::GlfwApplication::KeyEvent * glfw_event
 

Member Function Documentation

◆ addDelegate()

static KeyEventDelegateHandle TissueForge::event::KeyEvent::addDelegate ( KeyEventDelegateType * _delegate)
static

Adds an event delegate.

Parameters
_delegatedelegate to add
Returns
handle for future getting and removing

◆ addHandler()

static KeyEventHandlerHandle TissueForge::event::KeyEvent::addHandler ( KeyEventHandlerType * _handler)
static

Adds an event handler.

Parameters
_handlerhandler to add
Returns
handle for future getting and removing

◆ getDelegate()

static KeyEventDelegateType * TissueForge::event::KeyEvent::getDelegate ( const KeyEventDelegateHandle & handle)
static

Get an event delegate.

Parameters
handledelegate handle
Returns
delegate if handle is valid, otherwise NULL

◆ getHandler()

static KeyEventHandlerType * TissueForge::event::KeyEvent::getHandler ( const KeyEventHandlerHandle & handle)
static

Get an event handler.

Parameters
handlehandler handle
Returns
handler if handle is valid, otherwise NULL

◆ removeDelegate()

static bool TissueForge::event::KeyEvent::removeDelegate ( const KeyEventDelegateHandle & handle)
static

Remove an event delegate.

Parameters
handledelegate handle
Returns
true when delegate is removed
false when handle is invalid

◆ removeHandler()

static bool TissueForge::event::KeyEvent::removeHandler ( const KeyEventHandlerHandle & handle)
static

Remove an event handler.

Parameters
handlehandler handle
Returns
true when handler is removed
false when handle is invalid

The documentation for this struct was generated from the following file: