Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GraphicsWindowInputDevice Class Reference

#include <graphicsWindowInputDevice.h>

List of all members.

Public Member Functions

INLINE GraphicsWindowInputDevice ()
 GraphicsWindowInputDevice (const GraphicsWindowInputDevice &copy)
void operator= (const GraphicsWindowInputDevice &copy)
 ~GraphicsWindowInputDevice ()
INLINE string get_name () const
INLINE bool has_pointer () const
INLINE bool has_keyboard () const
INLINE const MouseDataget_mouse_data () const
bool has_button_event () const
ButtonEvent get_button_event ()
void button_down (ButtonHandle button)
void button_resume_down (ButtonHandle button)
void button_up (ButtonHandle button)
void keystroke (int keycode)
INLINE void set_pointer_in_window (int x, int y)
INLINE void set_pointer_out_of_window ()
INLINE bool operator== (const GraphicsWindowInputDevice &other) const
INLINE bool operator!= (const GraphicsWindowInputDevice &other) const
INLINE bool operator< (const GraphicsWindowInputDevice &other) const

Static Public Member Functions

GraphicsWindowInputDevice pointer_only (const string &name)
GraphicsWindowInputDevice keyboard_only (const string &name)
GraphicsWindowInputDevice pointer_and_keyboard (const string &name)

Private Types

typedef pdeque< ButtonEventButtonEvents
enum  InputDeviceFlags { IDF_has_pointer = 0x01, IDF_has_keyboard = 0x02 }

Private Member Functions

 GraphicsWindowInputDevice (const string &name, int flags)

Private Attributes

string _name
int _flags
MouseData _mouse_data
ButtonEvents _button_events


Member Typedef Documentation

typedef pdeque<ButtonEvent> GraphicsWindowInputDevice::ButtonEvents [private]
 

Definition at line 84 of file graphicsWindowInputDevice.h.


Member Enumeration Documentation

enum GraphicsWindowInputDevice::InputDeviceFlags [private]
 

Enumeration values:
IDF_has_pointer 
IDF_has_keyboard 

Definition at line 80 of file graphicsWindowInputDevice.h.


Constructor & Destructor Documentation

GraphicsWindowInputDevice::GraphicsWindowInputDevice const string &  name,
int  flags
[private]
 

Definition at line 48 of file graphicsWindowInputDevice.cxx.

INLINE GraphicsWindowInputDevice::GraphicsWindowInputDevice  ) 
 

Referenced by keyboard_only(), pointer_and_keyboard(), and pointer_only().

GraphicsWindowInputDevice::GraphicsWindowInputDevice const GraphicsWindowInputDevice &  copy  ) 
 

Definition at line 94 of file graphicsWindowInputDevice.cxx.

GraphicsWindowInputDevice::~GraphicsWindowInputDevice  ) 
 

Definition at line 121 of file graphicsWindowInputDevice.cxx.


Member Function Documentation

void GraphicsWindowInputDevice::button_down ButtonHandle  button  ) 
 

Definition at line 157 of file graphicsWindowInputDevice.cxx.

References _button_events, and ButtonEvent::T_down.

void GraphicsWindowInputDevice::button_resume_down ButtonHandle  button  ) 
 

Definition at line 170 of file graphicsWindowInputDevice.cxx.

References _button_events, and ButtonEvent::T_resume_down.

void GraphicsWindowInputDevice::button_up ButtonHandle  button  ) 
 

Definition at line 180 of file graphicsWindowInputDevice.cxx.

References _button_events, and ButtonEvent::T_up.

ButtonEvent GraphicsWindowInputDevice::get_button_event  ) 
 

Definition at line 145 of file graphicsWindowInputDevice.cxx.

References _button_events.

INLINE const MouseData& GraphicsWindowInputDevice::get_mouse_data  )  const
 

INLINE string GraphicsWindowInputDevice::get_name  )  const
 

bool GraphicsWindowInputDevice::has_button_event  )  const
 

Definition at line 134 of file graphicsWindowInputDevice.cxx.

References _button_events.

INLINE bool GraphicsWindowInputDevice::has_keyboard  )  const
 

INLINE bool GraphicsWindowInputDevice::has_pointer  )  const
 

GraphicsWindowInputDevice GraphicsWindowInputDevice::keyboard_only const string &  name  )  [static]
 

Definition at line 72 of file graphicsWindowInputDevice.cxx.

References GraphicsWindowInputDevice(), and IDF_has_keyboard.

void GraphicsWindowInputDevice::keystroke int  keycode  ) 
 

Definition at line 191 of file graphicsWindowInputDevice.cxx.

References _button_events.

INLINE bool GraphicsWindowInputDevice::operator!= const GraphicsWindowInputDevice &  other  )  const
 

INLINE bool GraphicsWindowInputDevice::operator< const GraphicsWindowInputDevice &  other  )  const
 

void GraphicsWindowInputDevice::operator= const GraphicsWindowInputDevice &  copy  ) 
 

Definition at line 108 of file graphicsWindowInputDevice.cxx.

References _button_events, _flags, _mouse_data, and _name.

INLINE bool GraphicsWindowInputDevice::operator== const GraphicsWindowInputDevice &  other  )  const
 

GraphicsWindowInputDevice GraphicsWindowInputDevice::pointer_and_keyboard const string &  name  )  [static]
 

Definition at line 83 of file graphicsWindowInputDevice.cxx.

References GraphicsWindowInputDevice(), IDF_has_keyboard, and IDF_has_pointer.

Referenced by wcrGraphicsWindow::config(), glxGraphicsWindow::glxGraphicsWindow(), and WinGraphicsWindow::WinGraphicsWindow().

GraphicsWindowInputDevice GraphicsWindowInputDevice::pointer_only const string &  name  )  [static]
 

Definition at line 61 of file graphicsWindowInputDevice.cxx.

References GraphicsWindowInputDevice(), and IDF_has_pointer.

INLINE void GraphicsWindowInputDevice::set_pointer_in_window int  x,
int  y
 

INLINE void GraphicsWindowInputDevice::set_pointer_out_of_window  ) 
 


Member Data Documentation

ButtonEvents GraphicsWindowInputDevice::_button_events [private]
 

Definition at line 89 of file graphicsWindowInputDevice.h.

Referenced by button_down(), button_resume_down(), button_up(), get_button_event(), has_button_event(), keystroke(), and operator=().

int GraphicsWindowInputDevice::_flags [private]
 

Definition at line 87 of file graphicsWindowInputDevice.h.

Referenced by operator=().

MouseData GraphicsWindowInputDevice::_mouse_data [private]
 

Definition at line 88 of file graphicsWindowInputDevice.h.

Referenced by operator=().

string GraphicsWindowInputDevice::_name [private]
 

Definition at line 86 of file graphicsWindowInputDevice.h.

Referenced by operator=().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:32 2003 for Panda by doxygen1.3