definitions.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CLR_INVALID   0xFFFFFFFF
 used to indicate no color or transparency
#define CLR_STANDARD   (CLR_INVALID - 1)
 used to indicate a standard color
#define INFINITE   0xFFFFFFFF
 when used as time, indicates never ending duration or a never occuring time
#define MAX_UINT32   0xFFFFFFFF
 the maximum value, a variable of the Uint_32 type can have
#define MAX_SINT32   0x7FFFFFFF
 the maximum value, a variable of the Sint_32 type can have
#define MIN_SINT32   0x80000000
 the minimum value, a variable of the Sint_32 type can have
#define MAX_UINT16   0xFFFF
 the maximum value, a variable of the Uint_16 type can have
#define MAX_SINT16   0x7FFF
 the maximum value, a variable of the Sint_16 type can have
#define MIN_SINT16   0x8000
 the minimum value, a variable of the Sint_16 type can have
#define MAX_BYTE   0xFF
 the maximum value, a variable of the Uint_8 type can have
#define MAX_CHAR   0x7F
 the maximum value, a variable of the Sint_8 type can have
#define MIN_CHAR   0x80
 the minimum value, a variable of the Sint_8 type can have
#define SMB_OK   0x01
 Used with messageboxes to show an OK button.
#define SMB_YES   0x02
 Used with messageboxes to show a YES button.
#define SMB_CANCEL   0x04
 Used with messageboxes to show a CANCEL button.
#define SMB_NO   0x08
 Used with messageboxes to show a NO button.
#define SMB_OKCANCEL   0x05
 Used with messageboxes to show an OK and a CANCEL button.
#define SMB_YESNO   0x0A
 Used with messageboxes to show a YES and a NO button.
#define SMB_YESNOCANCEL   0x0E
 Used with messageboxes to show a YES, a NO and a CANCEL button.
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
Returns:
the bigger value of a and b

#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
Returns:
the smaller value of a and b

#define sqr(X)   (X*X)
 
Returns:
the sqare of X

#define BETWEEN(i, min, max)   ((i >= min)&&(i <= max))
 
Returns:
true, if i is between min and max, false if not

#define CMP_WITH_2(x, i1, i2)   ((x == i1)||(x == i2))
 
Returns:
true, if x eqals i1 or i2


Detailed Description

Often used definitions.
Generated on Wed May 9 17:35:57 2007 for netrinjo by  doxygen 1.5.1