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

ModifierButtons Class Reference

#include <modifierButtons.h>

List of all members.

Private Types

typedef unsigned long BitmaskType

Private Member Functions

 ModifierButtons (const ModifierButtons &copy)
 ~ModifierButtons ()
INLINE void operator= (const ModifierButtons &copy)
INLINE bool operator== (const ModifierButtons &other) const
INLINE bool operator!= (const ModifierButtons &other) const
INLINE bool operator< (const ModifierButtons &other) const
bool matches (const ModifierButtons &other) const
bool add_button (ButtonHandle button)
bool has_button (ButtonHandle button) const
bool remove_button (ButtonHandle button)
INLINE int get_num_buttons () const
INLINE ButtonHandle get_button (int index) const
bool button_down (ButtonHandle button)
bool button_up (ButtonHandle button)
INLINE bool add_event (const ButtonEvent &event)
INLINE void all_buttons_up ()
bool is_down (ButtonHandle button) const
INLINE bool is_down (int index) const
INLINE bool is_any_down () const
string get_prefix () const
void output (ostream &out) const
void write (ostream &out) const
void modify_button_list ()
 PTA (ButtonHandle) _button_list

Private Attributes

PUBLISHED __pad0__: ModifierButtons()
BitmaskType _state


Member Typedef Documentation

typedef unsigned long ModifierButtons::BitmaskType [private]
 

Definition at line 72 of file modifierButtons.h.

Referenced by remove_button().


Constructor & Destructor Documentation

ModifierButtons::ModifierButtons const ModifierButtons &  copy  )  [private]
 

Definition at line 41 of file modifierButtons.cxx.

ModifierButtons::~ModifierButtons  )  [private]
 

Definition at line 53 of file modifierButtons.cxx.


Member Function Documentation

bool ModifierButtons::add_button ButtonHandle  button  )  [private]
 

Definition at line 116 of file modifierButtons.cxx.

References has_button(), modify_button_list(), and ButtonHandle::none().

Referenced by WindowFramework::enable_keyboard().

INLINE bool ModifierButtons::add_event const ButtonEvent event  )  [private]
 

Referenced by MouseWatcher::do_transmit_data(), DriveInterface::do_transmit_data(), and ButtonEventList::update_mods().

INLINE void ModifierButtons::all_buttons_up  )  [private]
 

Referenced by DriveInterface::reset().

bool ModifierButtons::button_down ButtonHandle  button  )  [private]
 

Definition at line 199 of file modifierButtons.cxx.

References _state.

Referenced by ButtonThrower::do_transmit_data().

bool ModifierButtons::button_up ButtonHandle  button  )  [private]
 

Definition at line 221 of file modifierButtons.cxx.

References _state.

Referenced by ButtonThrower::do_transmit_data().

INLINE ButtonHandle ModifierButtons::get_button int  index  )  const [private]
 

INLINE int ModifierButtons::get_num_buttons  )  const [private]
 

Referenced by matches().

string ModifierButtons::get_prefix  )  const [private]
 

Definition at line 258 of file modifierButtons.cxx.

References _state.

Referenced by ButtonThrower::do_transmit_data(), and MouseWatcher::throw_event_pattern().

bool ModifierButtons::has_button ButtonHandle  button  )  const [private]
 

Definition at line 144 of file modifierButtons.cxx.

References PTA().

Referenced by add_button(), and MouseWatcher::throw_event_pattern().

INLINE bool ModifierButtons::is_any_down  )  const [private]
 

Referenced by DriveInterface::do_transmit_data(), and MouseWatcherParameter::output().

INLINE bool ModifierButtons::is_down int  index  )  const [private]
 

bool ModifierButtons::is_down ButtonHandle  button  )  const [private]
 

Definition at line 240 of file modifierButtons.cxx.

References _state.

Referenced by Trackball::do_transmit_data(), and matches().

bool ModifierButtons::matches const ModifierButtons &  other  )  const [private]
 

Definition at line 66 of file modifierButtons.cxx.

References _state, get_num_buttons(), and is_down().

Referenced by ButtonThrower::add_throw_button(), ButtonThrower::has_throw_button(), and ButtonThrower::remove_throw_button().

void ModifierButtons::modify_button_list  )  [private]
 

Definition at line 319 of file modifierButtons.cxx.

References PTA().

Referenced by add_button(), and remove_button().

INLINE bool ModifierButtons::operator!= const ModifierButtons &  other  )  const [private]
 

INLINE bool ModifierButtons::operator< const ModifierButtons &  other  )  const [private]
 

INLINE void ModifierButtons::operator= const ModifierButtons &  copy  )  [private]
 

INLINE bool ModifierButtons::operator== const ModifierButtons &  other  )  const [private]
 

void ModifierButtons::output ostream &  out  )  const [private]
 

Definition at line 277 of file modifierButtons.cxx.

References _state.

Referenced by operator<<().

ModifierButtons::PTA ButtonHandle   )  [private]
 

Referenced by has_button(), and modify_button_list().

bool ModifierButtons::remove_button ButtonHandle  button  )  [private]
 

Definition at line 164 of file modifierButtons.cxx.

References _state, BitmaskType, and modify_button_list().

void ModifierButtons::write ostream &  out  )  const [private]
 

Definition at line 295 of file modifierButtons.cxx.

References _state.


Member Data Documentation

PUBLISHED ModifierButtons::__pad0__ [private]
 

Definition at line 36 of file modifierButtons.h.

BitmaskType ModifierButtons::_state [private]
 

Definition at line 73 of file modifierButtons.h.

Referenced by button_down(), button_up(), get_prefix(), is_down(), matches(), output(), remove_button(), and write().


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