Producer::KeyboardMouse Class Reference

Inheritance diagram for Producer::KeyboardMouse:

Producer::Referenced List of all members.

Public Member Functions

 KeyboardMouse (Producer::RenderSurface *rs)
 KeyboardMouse (Producer::InputArea *inputArea)
void update (KeyboardMouseCallback &, bool block=false)
void setCallback (KeyboardMouseCallback *cb)
KeyboardMouseCallbackgetCallback ()
void positionPointer (float x, float y)
Producer::RenderSurfacegetRenderSurface ()
const Producer::RenderSurfacegetRenderSurface () const
Producer::InputAreagetInputArea ()
const Producer::InputAreagetInputArea () const
bool computePixelCoords (float x, float y, RenderSurface *rs, float &pixel_x, float &pixel_y)
void setAutoRepeatMode (bool)
bool getAutoRepeatMode ()

Protected Member Functions

virtual ~KeyboardMouse ()
bool init ()
virtual void run ()

Protected Attributes

Producer::ref_ptr< KeyboardMouseImplementation > _implementation
Producer::ref_ptr< Producer::RenderSurface_rs
Producer::ref_ptr< Producer::InputArea_inputArea
Producer::ref_ptr< KeyboardMouseCallback_cb
bool _initialized

Constructor & Destructor Documentation

Producer::KeyboardMouse::KeyboardMouse ( Producer::RenderSurface rs  ) 

Producer::KeyboardMouse::KeyboardMouse ( Producer::InputArea inputArea  ) 

virtual Producer::KeyboardMouse::~KeyboardMouse (  )  [protected, virtual]


Member Function Documentation

void Producer::KeyboardMouse::update ( KeyboardMouseCallback ,
bool  block = false 
)

void Producer::KeyboardMouse::setCallback ( KeyboardMouseCallback cb  ) 

KeyboardMouseCallback* Producer::KeyboardMouse::getCallback (  )  [inline]

void Producer::KeyboardMouse::positionPointer ( float  x,
float  y 
)

Producer::RenderSurface* Producer::KeyboardMouse::getRenderSurface (  )  [inline]

const Producer::RenderSurface* Producer::KeyboardMouse::getRenderSurface (  )  const [inline]

Producer::InputArea* Producer::KeyboardMouse::getInputArea (  )  [inline]

const Producer::InputArea* Producer::KeyboardMouse::getInputArea (  )  const [inline]

bool Producer::KeyboardMouse::computePixelCoords ( float  x,
float  y,
RenderSurface rs,
float &  pixel_x,
float &  pixel_y 
)

compute, from normalized mouse coords (x,y) the, for the specified RenderSurface, the pixel coordinates (pixel_x,pixel_y). return true if pixel_x and pixel_y have been successful computed, otherwise return false with pixel_x and pixel_y left unchanged.

void Producer::KeyboardMouse::setAutoRepeatMode ( bool   ) 

Set auto repeat mode to On (true) or Off (false) When auto repeat is On, keys will send repeated keypress/keyRelease events, if a key is continously held down. Settings for keypress rates and delay are windowing system specific and out of the scope of Producer.

For X11 systems, autorepeat mode is enabled/disabled for local client testing of key repeats only. The global Xserver setting may not agree with local settings. That is, getAutoRepeatMode may be true, meaning that Producer will be looking for keys to repeat, even if the global setting is set to false.

bool Producer::KeyboardMouse::getAutoRepeatMode (  ) 

bool Producer::KeyboardMouse::init (  )  [protected]

virtual void Producer::KeyboardMouse::run (  )  [protected, virtual]


Member Data Documentation

Producer::ref_ptr< KeyboardMouseImplementation > Producer::KeyboardMouse::_implementation [protected]

Producer::ref_ptr< Producer::RenderSurface > Producer::KeyboardMouse::_rs [protected]

Producer::ref_ptr< Producer::InputArea > Producer::KeyboardMouse::_inputArea [protected]

Producer::ref_ptr< KeyboardMouseCallback > Producer::KeyboardMouse::_cb [protected]

bool Producer::KeyboardMouse::_initialized [protected]


The documentation for this class was generated from the following file:
Generated on Thu Sep 27 06:07:21 2007 for Producer by  doxygen 1.5.2