xmscore  1.0
color_defines.h File Reference

Definitions for color types and functions so they don't have to be included from Microsoft headers. More...

Go to the source code of this file.

Macros

#define XM_LOBYTE(w)   ((xms::XM_BYTE)(((xms::XM_DWORD_PTR)(w)) & 0xff))
 Returns the low byte.
 
#define XmsGetRValue(rgb)   (XM_LOBYTE(rgb))
 GetRValue Rename.
 
#define XmsGetGValue(rgb)   (XM_LOBYTE(((xms::XM_WORD)(rgb)) >> 8))
 GetGValue Rename.
 
#define XmsGetBValue(rgb)   (XM_LOBYTE((rgb) >> 16))
 GetBValue Rename.
 
#define XmsRGB(r, g, b)
 RGB rename. More...
 

Typedefs

typedef unsigned long xms::XM_DWORD
 DWORD rename.
 
typedef XM_ULONG_PTR xms::XM_DWORD_PTR
 DWORD_PTR rename.
 
typedef unsigned short xms::XM_WORD
 WORD rename.
 
typedef unsigned char xms::XM_BYTE
 BYTE rename rename.
 
typedef XM_DWORD xms::XM_COLORREF
 COLORREF rename.
 

Detailed Description

Definitions for color types and functions so they don't have to be included from Microsoft headers.

Definition in file color_defines.h.

Macro Definition Documentation

◆ XmsRGB

#define XmsRGB (   r,
  g,
 
)
Value:
(((xms::XM_WORD)(xms::XM_BYTE)(b)) << 16)))
XM_DWORD XM_COLORREF
COLORREF rename.
Definition: color_defines.h:35
unsigned short XM_WORD
WORD rename.
Definition: color_defines.h:33
unsigned char XM_BYTE
BYTE rename rename.
Definition: color_defines.h:34

RGB rename.

Definition at line 41 of file color_defines.h.