MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros | Variables
System colors and pixel values.

Macros

#define PIXEL_invalid   0
 Invalid pixel. More...
 
#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 SysColorIndex   SysPixelIndex
 

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

#define COLOR_black   PIXEL_black
See also
PIXEL_black

Definition at line 353 of file gdi.h.

#define COLOR_blue   PIXEL_blue
See also
PIXEL_blue

Definition at line 329 of file gdi.h.

#define COLOR_cyan   PIXEL_cyan
See also
PIXEL_cyan

Definition at line 341 of file gdi.h.

#define COLOR_darkblue   PIXEL_darkblue
See also
PIXEL_darkblue

Definition at line 281 of file gdi.h.

#define COLOR_darkcyan   PIXEL_darkcyan
See also
PIXEL_darkcyan

Definition at line 293 of file gdi.h.

#define COLOR_darkgray   PIXEL_darkgray
See also
PIXEL_darkgray

Definition at line 305 of file gdi.h.

#define COLOR_darkgreen   PIXEL_darkgreen
See also
PIXEL_darkgreen

Definition at line 269 of file gdi.h.

#define COLOR_darkmagenta   PIXEL_darkmagenta
See also
PIXEL_darkmagenta

Definition at line 287 of file gdi.h.

#define COLOR_darkred   PIXEL_darkred
See also
PIXEL_darkred

Definition at line 263 of file gdi.h.

#define COLOR_darkyellow   PIXEL_darkyellow
See also
PIXEL_darkyellow

Definition at line 275 of file gdi.h.

#define COLOR_green   PIXEL_green
See also
PIXEL_green

Definition at line 317 of file gdi.h.

#define COLOR_invalid   PIXEL_invalid
See also
PIXEL_invalid

Definition at line 251 of file gdi.h.

#define COLOR_lightgray   PIXEL_lightgray
See also
PIXEL_lightgray

Definition at line 299 of file gdi.h.

#define COLOR_lightwhite   PIXEL_lightwhite
See also
PIXEL_lightwhite

Definition at line 347 of file gdi.h.

#define COLOR_magenta   PIXEL_magenta
See also
PIXEL_magenta

Definition at line 335 of file gdi.h.

#define COLOR_red   PIXEL_red
See also
PIXEL_red

Definition at line 311 of file gdi.h.

#define COLOR_transparent   PIXEL_transparent
See also
PIXEL_transparent

Definition at line 257 of file gdi.h.

#define COLOR_yellow   PIXEL_yellow
See also
PIXEL_yellow

Definition at line 323 of file gdi.h.

#define PIXEL_black   SysPixelIndex[16]

Black.

See also
SysPixelIndex

Definition at line 244 of file gdi.h.

#define PIXEL_blue   SysPixelIndex[9]

Blue.

See also
SysPixelIndex

Definition at line 195 of file gdi.h.

#define PIXEL_cyan   SysPixelIndex[11]

Cyan.

See also
SysPixelIndex

Definition at line 209 of file gdi.h.

#define PIXEL_darkblue   SysPixelIndex[1]

Dark blue.

See also
SysPixelIndex

Definition at line 139 of file gdi.h.

#define PIXEL_darkcyan   SysPixelIndex[3]

Dark cyan.

See also
SysPixelIndex

Definition at line 153 of file gdi.h.

#define PIXEL_darkgray   SysPixelIndex[7]

Dark gray.

See also
SysPixelIndex

Definition at line 181 of file gdi.h.

#define PIXEL_darkgreen   SysPixelIndex[2]

Dark green.

See also
SysPixelIndex

Definition at line 146 of file gdi.h.

#define PIXEL_darkmagenta   SysPixelIndex[5]

Dark magenta.

See also
SysPixelIndex

Definition at line 167 of file gdi.h.

#define PIXEL_darkred   SysPixelIndex[4]

Dark red.

See also
SysPixelIndex

Definition at line 160 of file gdi.h.

#define PIXEL_darkyellow   SysPixelIndex[6]

Dark yellow.

See also
SysPixelIndex

Definition at line 174 of file gdi.h.

#define PIXEL_green   SysPixelIndex[10]

Green.

See also
SysPixelIndex

Definition at line 202 of file gdi.h.

#define PIXEL_invalid   0

Invalid pixel.

See also
SysPixelIndex

Definition at line 125 of file gdi.h.

#define PIXEL_lightgray   SysPixelIndex[8]

Light gray.

See also
SysPixelIndex

Definition at line 188 of file gdi.h.

#define PIXEL_lightwhite   SysPixelIndex[15]

Light white.

See also
SysPixelIndex

Definition at line 237 of file gdi.h.

#define PIXEL_magenta   SysPixelIndex[13]

Magenta.

See also
SysPixelIndex

Definition at line 223 of file gdi.h.

#define PIXEL_red   SysPixelIndex[12]

Red.

See also
SysPixelIndex

Definition at line 216 of file gdi.h.

#define PIXEL_transparent   SysPixelIndex[0]

Transparent.

See also
SysPixelIndex

Definition at line 132 of file gdi.h.

#define PIXEL_yellow   SysPixelIndex[14]

Yellow.

See also
SysPixelIndex

Definition at line 230 of file gdi.h.

#define SysColorIndex   SysPixelIndex
See also
SysPixelIndex

Definition at line 359 of file gdi.h.

Variable Documentation

RGB SysPixelColor[]

The pre-defined system RGB colors.

The elements in this array are system colors in RGB triples.

gal_pixel SysPixelIndex[]

The pre-defined system pixel values.

MiniGUI defines some system pixel values when initializing 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