pen.h File Reference

(r1785/r1282)

Go to the source code of this file.

Classes

class  CCPen
 This provides support for Pressure Sensitive Pen devices. Its job is to keep track of the current pressure of a pen. It will automatically mutate itself into either a Real or Pretend pen, depending on what is availble when it is created. If it is a real pen, then it gets it's pressure from mouse messages. If it is a pretend pen, then the pressure is adjusted using either the keyboard (temporarily Keypad +/-) or by using a joystick. More...
class  OpTogglePressure

Defines

#define MAXPRESSURE   1023
 
Header
/wxCamelot/wxOil/pen.h 5 5/08/05 18:57 Luke

#define JOYMAX   65536
#define OPTOKEN_TOGGLEPRESSURE   TEXT("TogglePressure")
 This class represents the TogglePressure operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether Pressure Information is stored within paths.

Enumerations

enum  PressureMode {
  PressureMode_None, PressureMode_Pen, PressureMode_Speed, PressureMode_Direction,
  PressureMode_MaxEnum
}


Define Documentation

#define JOYMAX   65536
 

Definition at line 114 of file pen.h.

#define MAXPRESSURE   1023
 

Header
/wxCamelot/wxOil/pen.h 5 5/08/05 18:57 Luke

Definition at line 113 of file pen.h.

#define OPTOKEN_TOGGLEPRESSURE   TEXT("TogglePressure")
 

This class represents the TogglePressure operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether Pressure Information is stored within paths.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/6/94

Definition at line 223 of file pen.h.


Enumeration Type Documentation

enum PressureMode
 

Enumerator:
PressureMode_None 
PressureMode_Pen 
PressureMode_Speed 
PressureMode_Direction 
PressureMode_MaxEnum 

Definition at line 116 of file pen.h.

00117 {
00118     PressureMode_None,          // Pressure not being recorded (always returns max pressure)
00119     PressureMode_Pen,           // Pressure is recorded from a real pressure pen
00120     PressureMode_Speed,         // Pressure is simulated from mouse speed
00121     PressureMode_Direction,     // Pressure is simulated from mouse direction
00122 
00123     PressureMode_MaxEnum        // Placeholder so we know how many modes there are
00124 } PressureMode;


Generated on Sat Nov 10 03:49:35 2007 for Camelot by  doxygen 1.4.4