MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros | Enumerations | Variables
System colors and pixel values.

Macros

#define PIXEL_invalid   0
 
#define PIXEL_transparent   SysPixelIndex[0]
 Transparent. More...
 
#define PIXEL_darkblue   SysPixelIndex[1]
 Dark blue. More...
 
#define PIXEL_darkgreen   SysPixelIndex[2]
 Dark green. More...
 
#define PIXEL_darkcyan   SysPixelIndex[3]
 Dark cyan. More...
 
#define PIXEL_darkred   SysPixelIndex[4]
 Dark red. More...
 
#define PIXEL_darkmagenta   SysPixelIndex[5]
 Dark magenta. More...
 
#define PIXEL_darkyellow   SysPixelIndex[6]
 Dark yellow. More...
 
#define PIXEL_darkgray   SysPixelIndex[7]
 Dark gray. More...
 
#define PIXEL_lightgray   SysPixelIndex[8]
 Light gray. More...
 
#define PIXEL_blue   SysPixelIndex[9]
 Blue. More...
 
#define PIXEL_green   SysPixelIndex[10]
 Green. More...
 
#define PIXEL_cyan   SysPixelIndex[11]
 Cyan. More...
 
#define PIXEL_red   SysPixelIndex[12]
 Red. More...
 
#define PIXEL_magenta   SysPixelIndex[13]
 Magenta. More...
 
#define PIXEL_yellow   SysPixelIndex[14]
 Yellow. More...
 
#define PIXEL_lightwhite   SysPixelIndex[15]
 Light white. More...
 
#define PIXEL_black   SysPixelIndex[16]
 Black. More...
 
#define COLOR_invalid   PIXEL_invalid
 
#define COLOR_transparent   PIXEL_transparent
 
#define COLOR_darkred   PIXEL_darkred
 
#define COLOR_darkgreen   PIXEL_darkgreen
 
#define COLOR_darkyellow   PIXEL_darkyellow
 
#define COLOR_darkblue   PIXEL_darkblue
 
#define COLOR_darkmagenta   PIXEL_darkmagenta
 
#define COLOR_darkcyan   PIXEL_darkcyan
 
#define COLOR_lightgray   PIXEL_lightgray
 
#define COLOR_darkgray   PIXEL_darkgray
 
#define COLOR_red   PIXEL_red
 
#define COLOR_green   PIXEL_green
 
#define COLOR_yellow   PIXEL_yellow
 
#define COLOR_blue   PIXEL_blue
 
#define COLOR_magenta   PIXEL_magenta
 
#define COLOR_cyan   PIXEL_cyan
 
#define COLOR_lightwhite   PIXEL_lightwhite
 
#define COLOR_black   PIXEL_black
 
#define RGBA_transparent
 
#define RGBA_darkblue
 
#define RGBA_darkgreen
 
#define RGBA_darkcyan
 
#define RGBA_darkred
 
#define RGBA_darkmagenta
 
#define RGBA_darkyellow
 
#define RGBA_darkgray
 
#define RGBA_lightgray
 
#define RGBA_blue
 
#define RGBA_green
 
#define RGBA_cyan
 
#define RGBA_red
 
#define RGBA_magenta
 
#define RGBA_yellow
 
#define RGBA_lightwhite
 
#define RGBA_black
 
#define SysColorIndex   SysPixelColor
 

Enumerations

enum  {
  IDX_COLOR_transparent = 0, IDX_COLOR_darkblue, IDX_COLOR_darkgreen, IDX_COLOR_darkcyan,
  IDX_COLOR_darkred, IDX_COLOR_darkmagenta, IDX_COLOR_darkyellow, IDX_COLOR_darkgray,
  IDX_COLOR_lightgray, IDX_COLOR_blue, IDX_COLOR_green, IDX_COLOR_cyan,
  IDX_COLOR_red, IDX_COLOR_magenta, IDX_COLOR_yellow, IDX_COLOR_lightwhite,
  IDX_COLOR_black
}
 

Variables

MG_EXPORT gal_pixel SysPixelIndex []
 The pre-defined system pixel values. More...
 
const MG_EXPORT RGB SysPixelColor []
 The pre-defined system RGB colors. More...
 

Detailed Description

Macro Definition Documentation

◆ COLOR_black

#define COLOR_black   PIXEL_black

Same as PIXEL_black; deprecated.

Definition at line 414 of file gdi.h.

◆ COLOR_blue

#define COLOR_blue   PIXEL_blue

Same as PIXEL_blue; deprecated.

Definition at line 390 of file gdi.h.

◆ COLOR_cyan

#define COLOR_cyan   PIXEL_cyan

Same as PIXEL_cyan; deprecated.

Definition at line 402 of file gdi.h.

◆ COLOR_darkblue

#define COLOR_darkblue   PIXEL_darkblue

Same as PIXEL_darkblue; deprecated.

Definition at line 342 of file gdi.h.

◆ COLOR_darkcyan

#define COLOR_darkcyan   PIXEL_darkcyan

Same as PIXEL_darkcyan; deprecated.

Definition at line 354 of file gdi.h.

◆ COLOR_darkgray

#define COLOR_darkgray   PIXEL_darkgray

Same as PIXEL_darkgray; deprecated.

Definition at line 366 of file gdi.h.

◆ COLOR_darkgreen

#define COLOR_darkgreen   PIXEL_darkgreen

Same as PIXEL_darkgreen; deprecated.

Definition at line 330 of file gdi.h.

◆ COLOR_darkmagenta

#define COLOR_darkmagenta   PIXEL_darkmagenta

Same as PIXEL_darkmagenta; deprecated.

Definition at line 348 of file gdi.h.

◆ COLOR_darkred

#define COLOR_darkred   PIXEL_darkred

Same as PIXEL_darkred; deprecated.

Definition at line 324 of file gdi.h.

◆ COLOR_darkyellow

#define COLOR_darkyellow   PIXEL_darkyellow

Same as PIXEL_darkyellow; deprecated.

Definition at line 336 of file gdi.h.

◆ COLOR_green

#define COLOR_green   PIXEL_green

Same as PIXEL_green; deprecated.

Definition at line 378 of file gdi.h.

◆ COLOR_invalid

#define COLOR_invalid   PIXEL_invalid

Compatiblity definition; deprecated.

Definition at line 312 of file gdi.h.

◆ COLOR_lightgray

#define COLOR_lightgray   PIXEL_lightgray

Same as PIXEL_lightgray; deprecated.

Definition at line 360 of file gdi.h.

◆ COLOR_lightwhite

#define COLOR_lightwhite   PIXEL_lightwhite

Same as PIXEL_lightwhite; deprecated.

Definition at line 408 of file gdi.h.

◆ COLOR_magenta

#define COLOR_magenta   PIXEL_magenta

Same as PIXEL_magenta; deprecated.

Definition at line 396 of file gdi.h.

◆ COLOR_red

#define COLOR_red   PIXEL_red

Same as PIXEL_red; deprecated.

Definition at line 372 of file gdi.h.

◆ COLOR_transparent

#define COLOR_transparent   PIXEL_transparent

Same as PIXEL_transparent; deprecated.

Definition at line 318 of file gdi.h.

◆ COLOR_yellow

#define COLOR_yellow   PIXEL_yellow

Same as PIXEL_yellow; deprecated.

Definition at line 384 of file gdi.h.

◆ PIXEL_black

#define PIXEL_black   SysPixelIndex[16]

Black.

See also
SysPixelIndex

Definition at line 306 of file gdi.h.

◆ PIXEL_blue

#define PIXEL_blue   SysPixelIndex[9]

Blue.

See also
SysPixelIndex

Definition at line 257 of file gdi.h.

◆ PIXEL_cyan

#define PIXEL_cyan   SysPixelIndex[11]

Cyan.

See also
SysPixelIndex

Definition at line 271 of file gdi.h.

◆ PIXEL_darkblue

#define PIXEL_darkblue   SysPixelIndex[1]

Dark blue.

See also
SysPixelIndex

Definition at line 201 of file gdi.h.

◆ PIXEL_darkcyan

#define PIXEL_darkcyan   SysPixelIndex[3]

Dark cyan.

See also
SysPixelIndex

Definition at line 215 of file gdi.h.

◆ PIXEL_darkgray

#define PIXEL_darkgray   SysPixelIndex[7]

Dark gray.

See also
SysPixelIndex

Definition at line 243 of file gdi.h.

◆ PIXEL_darkgreen

#define PIXEL_darkgreen   SysPixelIndex[2]

Dark green.

See also
SysPixelIndex

Definition at line 208 of file gdi.h.

◆ PIXEL_darkmagenta

#define PIXEL_darkmagenta   SysPixelIndex[5]

Dark magenta.

See also
SysPixelIndex

Definition at line 229 of file gdi.h.

◆ PIXEL_darkred

#define PIXEL_darkred   SysPixelIndex[4]

Dark red.

See also
SysPixelIndex

Definition at line 222 of file gdi.h.

◆ PIXEL_darkyellow

#define PIXEL_darkyellow   SysPixelIndex[6]

Dark yellow.

See also
SysPixelIndex

Definition at line 236 of file gdi.h.

◆ PIXEL_green

#define PIXEL_green   SysPixelIndex[10]

Green.

See also
SysPixelIndex

Definition at line 264 of file gdi.h.

◆ PIXEL_invalid

#define PIXEL_invalid   0

Compatiblity definition; deprecated.

See also
SysPixelIndex

Definition at line 187 of file gdi.h.

◆ PIXEL_lightgray

#define PIXEL_lightgray   SysPixelIndex[8]

Light gray.

See also
SysPixelIndex

Definition at line 250 of file gdi.h.

◆ PIXEL_lightwhite

#define PIXEL_lightwhite   SysPixelIndex[15]

Light white.

See also
SysPixelIndex

Definition at line 299 of file gdi.h.

◆ PIXEL_magenta

#define PIXEL_magenta   SysPixelIndex[13]

Magenta.

See also
SysPixelIndex

Definition at line 285 of file gdi.h.

◆ PIXEL_red

#define PIXEL_red   SysPixelIndex[12]

Red.

See also
SysPixelIndex

Definition at line 278 of file gdi.h.

◆ PIXEL_transparent

#define PIXEL_transparent   SysPixelIndex[0]

Transparent.

See also
SysPixelIndex

Definition at line 194 of file gdi.h.

◆ PIXEL_yellow

#define PIXEL_yellow   SysPixelIndex[14]

Yellow.

See also
SysPixelIndex

Definition at line 292 of file gdi.h.

◆ RGBA_black

#define RGBA_black
Value:

The RGBA quadruple for black color.

Definition at line 548 of file gdi.h.

◆ RGBA_blue

#define RGBA_blue
Value:

The RGBA quadruple for blue color.

Definition at line 492 of file gdi.h.

◆ RGBA_cyan

#define RGBA_cyan
Value:

The RGBA quadruple for cyan color.

Definition at line 508 of file gdi.h.

◆ RGBA_darkblue

#define RGBA_darkblue
Value:

The RGBA quadruple for dark blue color.

Definition at line 428 of file gdi.h.

◆ RGBA_darkcyan

#define RGBA_darkcyan
Value:

The RGBA quadruple for dark cyan color.

Definition at line 444 of file gdi.h.

◆ RGBA_darkgray

#define RGBA_darkgray
Value:

The RGBA quadruple for dark gray color.

Definition at line 476 of file gdi.h.

◆ RGBA_darkgreen

#define RGBA_darkgreen
Value:

The RGBA quadruple for dark green color.

Definition at line 436 of file gdi.h.

◆ RGBA_darkmagenta

#define RGBA_darkmagenta
Value:

The RGBA quadruple for dark magenta color.

Definition at line 460 of file gdi.h.

◆ RGBA_darkred

#define RGBA_darkred
Value:

The RGBA quadruple for dark red color.

Definition at line 452 of file gdi.h.

◆ RGBA_darkyellow

#define RGBA_darkyellow
Value:

The RGBA quadruple for dark yellow color.

Definition at line 468 of file gdi.h.

◆ RGBA_green

#define RGBA_green
Value:

The RGBA quadruple for green color.

Definition at line 500 of file gdi.h.

◆ RGBA_lightgray

#define RGBA_lightgray
Value:

The RGBA quadruple for light gray color.

Definition at line 484 of file gdi.h.

◆ RGBA_lightwhite

#define RGBA_lightwhite
Value:

The RGBA quadruple for light white color.

Definition at line 540 of file gdi.h.

◆ RGBA_magenta

#define RGBA_magenta
Value:

The RGBA quadruple for magenta color.

Definition at line 524 of file gdi.h.

◆ RGBA_red

#define RGBA_red
Value:

The RGBA quadruple for red color.

Definition at line 516 of file gdi.h.

◆ RGBA_transparent

#define RGBA_transparent
Value:

The RGBA quadruple for transparent color.

Definition at line 420 of file gdi.h.

◆ RGBA_yellow

#define RGBA_yellow
Value:

The RGBA quadruple for yellow color.

Definition at line 532 of file gdi.h.

◆ SysColorIndex

#define SysColorIndex   SysPixelColor
See also
SysPixelColor

Definition at line 556 of file gdi.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Indexes for system standard colors.

Enumerator
IDX_COLOR_transparent 

Index for transparent color.

IDX_COLOR_darkblue 

Index for dark blue color.

IDX_COLOR_darkgreen 

Index for dark green color.

IDX_COLOR_darkcyan 

Index for dark cyan color.

IDX_COLOR_darkred 

Index for dark red color.

IDX_COLOR_darkmagenta 

Index for draw magenta color.

IDX_COLOR_darkyellow 

Index for dark yellow color.

IDX_COLOR_darkgray 

Index for dark gray color.

IDX_COLOR_lightgray 

Index for light gray color.

IDX_COLOR_blue 

Index for blue color.

IDX_COLOR_green 

Index for green color.

IDX_COLOR_cyan 

Index for cyan color.

IDX_COLOR_red 

Index for red color.

IDX_COLOR_magenta 

Index for magenta color.

IDX_COLOR_yellow 

Index for yellow color.

IDX_COLOR_lightwhite 

Index for light white color.

IDX_COLOR_black 

Index for black color.

Definition at line 145 of file gdi.h.

Variable Documentation

◆ SysPixelColor

RGB SysPixelColor[]

The pre-defined system RGB colors.

The elements in this array are system colors in RGBA quadruple.

◆ SysPixelIndex

gal_pixel SysPixelIndex[]

The pre-defined system pixel values.

MiniGUI defines some system pixel values when initializing the graphics sub-system. You can access the arrary to get the system pixel values, or just use the following macros:

  • PIXEL_black
    black
  • PIXEL_darkred
    dark red
  • PIXEL_darkgreen
    dark green
  • PIXEL_darkyellow
    dark yellow
  • PIXEL_darkblue
    dark blue
  • PIXEL_darkmagenta
    dark magenta
  • PIXEL_darkcyan
    dark cyan
  • PIXEL_lightgray
    light gray
  • PIXEL_darkgray
    dark gray
  • PIXEL_red
    red
  • PIXEL_green
    green
  • PIXEL_yellow
    yellow
  • PIXEL_blue
    blue
  • PIXEL_magenta
    magenta
  • PIXEL_cyan
    cyan
  • PIXEL_lightwhite
    light white
Note
These pixel values are complient to pixel format of HDC_SCREEN. Since 5.0.0, you should use the value returned by MakeRGBA macro for the background color of a window.
SysPixelColor
const MG_EXPORT RGB SysPixelColor[]
The pre-defined system RGB colors.
MakeRGBA
#define MakeRGBA(r, g, b, a)
Makes a RGBA quadruple value from red r, green g, blue b and alpha components.
Definition: common.h:909