unittype.h File Reference

(r1785/r751)

Go to the source code of this file.

Defines

#define UNIT_NOTYPE   -1
#define UNIT_AUTOMATIC   -2
#define UNIT_MILLIMETRES   0
#define UNIT_CENTIMETRES   1
#define UNIT_METRES   2
#define UNIT_INCHES   3
#define UNIT_FEET   4
#define UNIT_YARDS   5
#define UNIT_COMP_POINTS   6
#define UNIT_PICAS   7
#define UNIT_MILLIPOINTS   8
#define UNIT_MILES   9
#define UNIT_KILOMETRES   10
#define UNIT_PIXELS   11
#define UNIT_NUM_DEFAULT_TYPES   255

Enumerations

enum  UnitType {
  NOTYPE = -1, AUTOMATIC = -2, MILLIMETRES = 0, CENTIMETRES,
  METRES, INCHES, FEET, YARDS,
  COMP_POINTS, PICAS, MILLIPOINTS, MILES,
  KILOMETRES, PIXELS, NUM_DEFAULT_UNIT_TYPES = 255
}


Define Documentation

#define UNIT_AUTOMATIC   -2
 

Definition at line 133 of file unittype.h.

#define UNIT_CENTIMETRES   1
 

Definition at line 135 of file unittype.h.

#define UNIT_COMP_POINTS   6
 

Definition at line 140 of file unittype.h.

#define UNIT_FEET   4
 

Definition at line 138 of file unittype.h.

#define UNIT_INCHES   3
 

Definition at line 137 of file unittype.h.

#define UNIT_KILOMETRES   10
 

Definition at line 144 of file unittype.h.

#define UNIT_METRES   2
 

Definition at line 136 of file unittype.h.

#define UNIT_MILES   9
 

Definition at line 143 of file unittype.h.

#define UNIT_MILLIMETRES   0
 

Definition at line 134 of file unittype.h.

#define UNIT_MILLIPOINTS   8
 

Definition at line 142 of file unittype.h.

#define UNIT_NOTYPE   -1
 

Definition at line 132 of file unittype.h.

#define UNIT_NUM_DEFAULT_TYPES   255
 

Definition at line 147 of file unittype.h.

#define UNIT_PICAS   7
 

Definition at line 141 of file unittype.h.

#define UNIT_PIXELS   11
 

Definition at line 145 of file unittype.h.

#define UNIT_YARDS   5
 

Definition at line 139 of file unittype.h.


Enumeration Type Documentation

enum UnitType
 

Enumerator:
NOTYPE 
AUTOMATIC 
MILLIMETRES 
CENTIMETRES 
METRES 
INCHES 
FEET 
YARDS 
COMP_POINTS 
PICAS 
MILLIPOINTS 
MILES 
KILOMETRES 
PIXELS 
NUM_DEFAULT_UNIT_TYPES 

Definition at line 104 of file unittype.h.

00105 {
00106     NOTYPE      = -1,           // The type with no name
00107     AUTOMATIC   = -2,           // Special type that can be used when setting the scale units
00108     MILLIMETRES = 0,
00109     CENTIMETRES,
00110     METRES,     
00111     INCHES,     
00112     FEET,       
00113     YARDS,
00114     COMP_POINTS,                // Computer Points (exactly 1/72 inch)
00115     PICAS,
00116     MILLIPOINTS,
00117     MILES,
00118     KILOMETRES,
00119     PIXELS,
00120     NUM_DEFAULT_UNIT_TYPES = 255    // Number of default unit types in Camelot
00121                                 // Add new ones before this value
00122                                 // (****NOTE****: remember to change/add the #defines below)
00123 } UnitType;


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