AaronCameron.net
No ads. No Profit. No Master, But Truth.
Not a Member? - Login or Create an Account
Tuesday the 7th of February 2012 @ 05:22pm
Front Page Journal Projects Your Profile About
[]

LibN2L-4 Library Code Reference

Classes
Compounds
Files
Members
Method Index
Full Reference

n2l::cEventManager Class Reference

#include <cEventManager.h>

Collaboration diagram for n2l::cEventManager:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

Friends


Detailed Description

Note:
This manager is not even remotely threadsafe. The only certainty when using this class concurrently between threads is a painful death.

Definition at line 45 of file cEventManager.h.


Member Function Documentation

const tBool n2l::cEventManager::getMouseMapCoordinates tMousePos oTopLeft,
tMousePos oBottomRight
[static]
 

Get the current top left and bottom right mappings for the mouse.

Warning:
These values are meaningless if mapping isn't enabled.

Definition at line 120 of file cEventManager.cpp.

Referenced by n2l::cGuiApp::run().

const tBool n2l::cEventManager::mouseButtonDown const tMouseButton  iButton  )  [static]
 

Get the current up/down status of a mouse button.

Definition at line 165 of file cEventManager.cpp.

References n2l::MouseButton_NumMouseButtons, and n2l::MouseButton_Unknown.

void n2l::cEventManager::mouseMapCoordinates const tMousePos iTopLeft,
const tMousePos iBottomRight
[static]
 

Provide a new screen resolution to map the mouse position to.

All mouse events will appear to come from the mapped dimensions in a 2-space float vector (tVector2f) with sub-pixel accuracy where appropriate.

Note:
It is safe and allowed to invert vertically or horizontally the mapped coordinates if you so wish.

Mapping information is automatically updated if the screen is resized. No calls are necessary, though any events which took place before the resize will be scaled to the resolution that the screen was until the resize event.

Definition at line 110 of file cEventManager.cpp.

Referenced by n2l::cGuiApp::run().

void n2l::cEventManager::mousePos const tMousePos iPos,
const tBool  iBlockEvent = false
[static]
 

Set the current location of the mouse pointer.

Definition at line 140 of file cEventManager.cpp.

References n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::x(), and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().

const tMousePos & n2l::cEventManager::mousePos  )  [static]
 

Get the current location of the mouse pointer.

Definition at line 130 of file cEventManager.cpp.

References mouseSystemToLocal().

const tVector2f & n2l::cEventManager::mouseSystemToLocal const tSint  iX,
const tSint  iY
[static]
 

Map a set of system coordinates to locally mapped coordinates.

Definition at line 183 of file cEventManager.cpp.

References n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::set().

Referenced by mousePos().

const tBool n2l::cEventManager::popEvent cAutoPtr< const cEventInterface > &  o_iEvent  )  [static]
 

Definition at line 51 of file cEventManager.cpp.

Referenced by n2l::cGuiApp::run().


Friends And Related Function Documentation

friend class cDisplayCommonImp [friend]
 

Definition at line 91 of file cEventManager.h.


The documentation for this class was generated from the following files:
©2012 Aaron Cameron