Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TabletEvent Class Reference

#include <tablet.H>

Collaboration diagram for TabletEvent:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { STYLUS, PUCK }
enum  { BUTTON_DOWN, MOTION, BUTTON_UP }

Public Member Functions

 TabletEvent (char *buf, TabletDesc *d)
 TabletEvent ()
virtual ~TabletEvent ()
int get_device () const
double * get_pos ()
char get_buttons ()
int touching_tablet ()
double stylus_pressure ()
int is_valid ()
int is_eraser ()

Protected Attributes

int _device
TabletDesc_desc
double _pos [2]
char _buttons
int _touching_tablet
double _stylus_pressure
int _is_valid
int _is_eraser

Friends

class TabletQueue

Detailed Description

Definition at line 40 of file tablet.H.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
STYLUS 
PUCK 

Definition at line 59 of file tablet.H.

anonymous enum
 

Enumerator:
BUTTON_DOWN 
MOTION 
BUTTON_UP 

Definition at line 60 of file tablet.H.


Constructor & Destructor Documentation

TabletEvent::TabletEvent char *  buf,
TabletDesc d
 

Definition at line 115 of file tablet.C.

References _buttons, _desc, _device, _is_eraser, _is_valid, _pos, _stylus_pressure, _touching_tablet, TabletDesc::_type, TabletDesc::_yres, BIT, TabletDesc::CROSS, Config::get_var_bool(), Config::get_var_dbl(), int(), TabletDesc::INTUOS, TabletDesc::LCD, PUCK, STYLUS, and TabletDesc::TINY.

TabletEvent::TabletEvent  )  [inline]
 

Definition at line 45 of file tablet.H.

virtual TabletEvent::~TabletEvent  )  [inline, virtual]
 

Definition at line 46 of file tablet.H.


Member Function Documentation

char TabletEvent::get_buttons  )  [inline]
 

Definition at line 51 of file tablet.H.

References _buttons.

Referenced by TabletQueue::enqueue(), and TabletMultimode::sample().

int TabletEvent::get_device  )  const [inline]
 

Definition at line 48 of file tablet.H.

References _device.

Referenced by TabletMultimode::enqueue_available_tablet_events(), and TabletMultimode::sample().

double* TabletEvent::get_pos  )  [inline]
 

Definition at line 50 of file tablet.H.

References _pos.

Referenced by TabletMultimode::sample().

int TabletEvent::is_eraser  )  [inline]
 

Definition at line 57 of file tablet.H.

References _is_eraser.

Referenced by TabletMultimode::sample().

int TabletEvent::is_valid  )  [inline]
 

Definition at line 56 of file tablet.H.

References _is_valid.

Referenced by TabletMultimode::enqueue_available_tablet_events().

double TabletEvent::stylus_pressure  )  [inline]
 

Definition at line 54 of file tablet.H.

References _stylus_pressure.

Referenced by TabletMultimode::sample().

int TabletEvent::touching_tablet  )  [inline]
 

Definition at line 53 of file tablet.H.

References _touching_tablet.

Referenced by TabletQueue::enqueue(), and TabletMultimode::sample().


Friends And Related Function Documentation

friend class TabletQueue [friend]
 

Definition at line 42 of file tablet.H.


Member Data Documentation

char TabletEvent::_buttons [protected]
 

Definition at line 67 of file tablet.H.

Referenced by get_buttons(), and TabletEvent().

TabletDesc* TabletEvent::_desc [protected]
 

Definition at line 64 of file tablet.H.

Referenced by TabletEvent().

int TabletEvent::_device [protected]
 

Definition at line 63 of file tablet.H.

Referenced by get_device(), and TabletEvent().

int TabletEvent::_is_eraser [protected]
 

Definition at line 71 of file tablet.H.

Referenced by is_eraser(), and TabletEvent().

int TabletEvent::_is_valid [protected]
 

Definition at line 70 of file tablet.H.

Referenced by is_valid(), and TabletEvent().

double TabletEvent::_pos[2] [protected]
 

Definition at line 66 of file tablet.H.

Referenced by get_pos(), and TabletEvent().

double TabletEvent::_stylus_pressure [protected]
 

Definition at line 69 of file tablet.H.

Referenced by stylus_pressure(), and TabletEvent().

int TabletEvent::_touching_tablet [protected]
 

Definition at line 68 of file tablet.H.

Referenced by TabletEvent(), and touching_tablet().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:47:28 2006 for jot by  doxygen 1.4.4