Data Structures | Macros | Typedefs | Functions | Variables
Primitives_api

Data Structures

struct  Graphics_Image
 This structure defines the characteristics of a Bitmap Image. More...
 
struct  Graphics_Rectangle
 
struct  Graphics_Display
 This structure defines the characteristics of a display driver. More...
 
struct  Graphics_Font
 This structure describes a font used for drawing text onto the screen. More...
 
struct  Graphics_FontEx
 
struct  Graphics_Context
 

Macros

#define min(a, b)   (((a) < (b)) ? (a) : (b))
 
#define max(a, b)   (((a) < (b)) ? (b) : (a))
 
#define ClrAliceBlue   GRAPHICS_COLOR_ALICE_BLUE
 
#define ClrAntiqueWhite   GRAPHICS_COLOR_ANTIQUE_WHITE
 
#define ClrAqua   GRAPHICS_COLOR_AQUA
 
#define ClrAquamarine   GRAPHICS_COLOR_AQUAMARINE
 
#define ClrAzure   GRAPHICS_COLOR_AZURE
 
#define ClrBeige   GRAPHICS_COLOR_BEIGE
 
#define ClrBisque   GRAPHICS_COLOR_BISQUE
 
#define ClrBlack   GRAPHICS_COLOR_BLACK
 
#define ClrBlack   GRAPHICS_COLOR_BLACK
 
#define ClrBlanchedAlmond   GRAPHICS_COLOR_BLANCHED_ALMOND
 
#define ClrBlue   GRAPHICS_COLOR_BLUE
 
#define ClrBlueViolet   GRAPHICS_COLOR_BLUE_VIOLET
 
#define ClrBrown   GRAPHICS_COLOR_BROWN
 
#define ClrBurlyWood   GRAPHICS_COLOR_BURLY_WOOD
 
#define ClrCadetBlue   GRAPHICS_COLOR_CADET_BLUE
 
#define ClrChartreuse   GRAPHICS_COLOR_CHARTREUSE
 
#define ClrChocolate   GRAPHICS_COLOR_CHOCOLATE
 
#define ClrCoral   GRAPHICS_COLOR_CORAL
 
#define ClrCornflowerBlue   GRAPHICS_COLOR_CORNFLOWER_BLUE
 
#define ClrCornsilk   GRAPHICS_COLOR_CORNSILK
 
#define ClrCrimson   GRAPHICS_COLOR_CRIMSON
 
#define ClrCyan   GRAPHICS_COLOR_CYAN
 
#define ClrDarkBlue   GRAPHICS_COLOR_DARK_BLUE
 
#define ClrDarkCyan   GRAPHICS_COLOR_DARK_CYAN
 
#define ClrDarkGoldenrod   GRAPHICS_COLOR_DARK_GOLDENROD
 
#define ClrDarkGray   GRAPHICS_COLOR_DARK_GRAY
 
#define ClrDarkGreen   GRAPHICS_COLOR_DARK_GREEN
 
#define ClrDarkKhaki   GRAPHICS_COLOR_DARK_KHAKI
 
#define ClrDarkMagenta   GRAPHICS_COLOR_DARK_MAGENTA
 
#define ClrDarkOliveGreen   GRAPHICS_COLOR_DARK_OLIVE_GREEN
 
#define ClrDarkOrange   GRAPHICS_COLOR_DARK_ORANGE
 
#define ClrDarkOrchid   GRAPHICS_COLOR_DARK_ORCHID
 
#define ClrDarkRed   GRAPHICS_COLOR_DARK_RED
 
#define ClrDarkSalmon   GRAPHICS_COLOR_DARK_SALMON
 
#define ClrDarkSeaGreen   GRAPHICS_COLOR_DARK_SEA_GREEN
 
#define ClrDarkSlateBlue   GRAPHICS_COLOR_DARK_SLATE_BLUE
 
#define ClrDarkSlateGray   GRAPHICS_COLOR_DARK_SLATE_GRAY
 
#define ClrDarkTurquoise   GRAPHICS_COLOR_DARK_TURQUOISE
 
#define ClrDarkViolet   GRAPHICS_COLOR_DARK_VIOLET
 
#define ClrDeepPink   GRAPHICS_COLOR_DEEP_PINK
 
#define ClrDeepSkyBlue   GRAPHICS_COLOR_DEEP_SKY_BLUE
 
#define ClrDimGray   GRAPHICS_COLOR_DIM_GRAY
 
#define ClrDodgerBlue   GRAPHICS_COLOR_DODGER_BLUE
 
#define ClrFireBrick   GRAPHICS_COLOR_FIRE_BRICK
 
#define ClrFloralWhite   GRAPHICS_COLOR_FLORAL_WHITE
 
#define ClrForestGreen   GRAPHICS_COLOR_FOREST_GREEN
 
#define ClrFuchsia   GRAPHICS_COLOR_FUCHSIA
 
#define ClrGainsboro   GRAPHICS_COLOR_GAINSBORO
 
#define ClrGhostWhite   GRAPHICS_COLOR_GHOST_WHITE
 
#define ClrGold   GRAPHICS_COLOR_GOLD
 
#define ClrGoldenrod   GRAPHICS_COLOR_GOLDENRON
 
#define ClrGray   GRAPHICS_COLOR_GRAY
 
#define ClrGreen   GRAPHICS_COLOR_GREEN
 
#define ClrGreenYellow   GRAPHICS_COLOR_GREEN_YELLOW
 
#define ClrHoneydew   GRAPHICS_COLOR_HONEYDEW
 
#define ClrHotPink   GRAPHICS_COLOR_HOT_PINK
 
#define ClrIndianRed   GRAPHICS_COLOR_INDIAN_RED
 
#define ClrIndigo   GRAPHICS_COLOR_INDIGO
 
#define ClrIvory   GRAPHICS_COLOR_IVORY
 
#define ClrKhaki   GRAPHICS_COLOR_KHAKI
 
#define ClrLavender   GRAPHICS_COLOR_LAVENDER
 
#define ClrLavenderBlush   GRAPHICS_COLOR_LAVENDER_BLUSH
 
#define ClrLawnGreen   GRAPHICS_COLOR_LAWN_GREEN
 
#define ClrLemonChiffon   GRAPHICS_COLOR_LEMON_CHIFFON
 
#define ClrLightBlue   GRAPHICS_COLOR_LIGHT_BLUE
 
#define ClrLightCoral   GRAPHICS_COLOR_LIGHT_CORAL
 
#define ClrLightCyan   GRAPHICS_COLOR_LIGHT_CYAN
 
#define ClrLightGoldenrodYellow   GRAPHICS_COLOR_LIGHT_GOLDENRON_YELLOW
 
#define ClrLightGreen   GRAPHICS_COLOR_LIGHT_GREEN
 
#define ClrLightGrey   GRAPHICS_COLOR_LIGHT_GRAY
 
#define ClrLightPink   GRAPHICS_COLOR_LIGHT_PINK
 
#define ClrLightSalmon   GRAPHICS_COLOR_LIGHT_SALMON
 
#define ClrLightSeaGreen   GRAPHICS_COLOR_LIGHT_SEA_GREEN
 
#define ClrLightSkyBlue   GRAPHICS_COLOR_LIGHT_SKY_BLUE
 
#define ClrLightSlateGray   GRAPHICS_COLOR_LIGHT_SLATE_GRAY
 
#define ClrLightSteelBlue   GRAPHICS_COLOR_LIGHT_STEEL_BLUE
 
#define ClrLightYellow   GRAPHICS_COLOR_LIGHT_YELLOW
 
#define ClrLime   GRAPHICS_COLOR_LIME
 
#define ClrLimeGreen   GRAPHICS_COLOR_LIME_GREEN
 
#define ClrLinen   GRAPHICS_COLOR_LINEN
 
#define ClrMagenta   GRAPHICS_COLOR_MAGENTA
 
#define ClrMaroon   GRAPHICS_COLOR_MAROON
 
#define ClrMediumAquamarine   GRAPHICS_COLOR_MEDIUM_AQUAMARINE
 
#define ClrMediumBlue   GRAPHICS_COLOR_MEDIUM_BLUE
 
#define ClrMediumOrchid   GRAPHICS_COLOR_MEDIUM_ORCHID
 
#define ClrMediumPurple   GRAPHICS_COLOR_MEDIUM_PURPLE
 
#define ClrMediumSeaGreen   GRAPHICS_COLOR_MEDIUM_SEA_GREEN
 
#define ClrMediumSlateBlue   GRAPHICS_COLOR_MEDIUM_SLATE_BLUE
 
#define ClrMediumSpringGreen   GRAPHICS_COLOR_MEDIUM_SPRING_GREEN
 
#define ClrMediumTurquoise   GRAPHICS_COLOR_MEDIUM_TURQUOISE
 
#define ClrMediumVioletRed   GRAPHICS_COLOR_MEDIUM_VIOLET_RED
 
#define ClrMidnightBlue   GRAPHICS_COLOR_MIGNIGHT_BLUE
 
#define ClrMintCream   GRAPHICS_COLOR_MINT_CREAM
 
#define ClrMistyRose   GRAPHICS_COLOR_MISTY_ROSE
 
#define ClrMoccasin   GRAPHICS_COLOR_MOCCASIN
 
#define ClrNavajoWhite   GRAPHICS_COLOR_NAVAJO_WHITE
 
#define ClrNavy   GRAPHICS_COLOR_NAVY
 
#define ClrOldLace   GRAPHICS_COLOR_OLD_LACE
 
#define ClrOlive   GRAPHICS_COLOR_OLIVE
 
#define ClrOliveDrab   GRAPHICS_COLOR_OLIVE_DRAB
 
#define ClrOrange   GRAPHICS_COLOR_ORANGE
 
#define ClrOrangeRed   GRAPHICS_COLOR_ORANGE_RED
 
#define ClrOrchid   GRAPHICS_COLOR_ORCHID
 
#define ClrPaleGoldenrod   GRAPHICS_COLOR_PALE_GOLDENRON
 
#define ClrPaleGreen   GRAPHICS_COLOR_PALE_GREEN
 
#define ClrPaleTurquoise   GRAPHICS_COLOR_PALE_TURQUOISE
 
#define ClrPaleVioletRed   GRAPHICS_COLOR_PALE_VIOLET_RED
 
#define ClrPapayaWhip   GRAPHICS_COLOR_PAPAYA_WHIP
 
#define ClrPeachPuff   GRAPHICS_COLOR_PEACH_PUFF
 
#define ClrPeru   GRAPHICS_COLOR_PERU
 
#define ClrPink   GRAPHICS_COLOR_PINK
 
#define ClrPlum   GRAPHICS_COLOR_PLUM
 
#define ClrPowderBlue   GRAPHICS_COLOR_POWDER_BLUE
 
#define ClrPurple   GRAPHICS_COLOR_PURPLE
 
#define ClrRed   GRAPHICS_COLOR_RED
 
#define ClrRosyBrown   GRAPHICS_COLOR_ROSY_BROWN
 
#define ClrRoyalBlue   GRAPHICS_COLOR_ROYAL_BLUE
 
#define ClrSaddleBrown   GRAPHICS_COLOR_SADDLE_BROWN
 
#define ClrSalmon   GRAPHICS_COLOR_SALMON
 
#define ClrSandyBrown   GRAPHICS_COLOR_SANDY_BROWN
 
#define ClrSeaGreen   GRAPHICS_COLOR_SEA_GREEN
 
#define ClrSeashell   GRAPHICS_COLOR_SEASHELL
 
#define ClrSienna   GRAPHICS_COLOR_SIENNA
 
#define ClrSilver   GRAPHICS_COLOR_SILVER
 
#define ClrSkyBlue   GRAPHICS_COLOR_SKY_BLUE
 
#define ClrSlateBlue   GRAPHICS_COLOR_SLATE_BLUE
 
#define ClrSlateGray   GRAPHICS_COLOR_SLATE_GRAY
 
#define ClrSnow   GRAPHICS_COLOR_SNOW
 
#define ClrSpringGreen   GRAPHICS_COLOR_SPRING_GREEN
 
#define ClrSteelBlue   GRAPHICS_COLOR_STEEL_BLUE
 
#define ClrTan   GRAPHICS_COLOR_TAN
 
#define ClrTeal   GRAPHICS_COLOR_TEAL
 
#define ClrThistle   GRAPHICS_COLOR_THISTLE
 
#define ClrTomato   GRAPHICS_COLOR_TOMATO
 
#define ClrTurquoise   GRAPHICS_COLOR_TURQUOISE
 
#define ClrViolet   GRAPHICS_COLOR_VIOLET
 
#define ClrWheat   GRAPHICS_COLOR_WHEAT
 
#define ClrWhite   GRAPHICS_COLOR_WHITE
 
#define ClrWhiteSmoke   GRAPHICS_COLOR_WHITE_SMOKE
 
#define ClrYellow   GRAPHICS_COLOR_YELLOW
 
#define ClrYellowGreen   GRAPHICS_COLOR_YELLOW_GREEN
 
#define FONT_FMT_UNCOMPRESSED   GRAPHICS_FONT_FMT_UNCOMPRESSED
 
#define FONT_FMT_PIXEL_RLE   GRAPHICS_FONT_FMT_PIXEL_RLE
 
#define FONT_EX_MARKER   GRAPHICS_FONT_EX_MARKER
 
#define FONT_FMT_EX_UNCOMPRESSED   GRAPHICS_FONT_FMT_EX_UNCOMPRESSED
 
#define FONT_FMT_EX_PIXEL_RLE   GRAPHICS_FONT_FMT_EX_PIXEL_RLE
 
#define AUTO_STRING_LENGTH   GRAPHICS_AUTO_STRING_LENGTH
 
#define OPAQUE_TEXT   GRAPHICS_OPAQUE_TEXT
 
#define TRANSPARENT_TEXT   GRAPHICS_TRANSPARENT_TEXT
 
#define IMAGE_FMT_1BPP_UNCOMP   GRAPHICS_IMAGE_FMT_1BPP_UNCOMP
 
#define IMAGE_FMT_2BPP_UNCOMP   GRAPHICS_IMAGE_FMT_2BPP_UNCOMP
 
#define IMAGE_FMT_2BPP_UNCOMP   GRAPHICS_IMAGE_FMT_2BPP_UNCOMP
 
#define IMAGE_FMT_4BPP_UNCOMP   GRAPHICS_IMAGE_FMT_4BPP_UNCOMP
 
#define IMAGE_FMT_8BPP_UNCOMP   GRAPHICS_IMAGE_FMT_8BPP_UNCOMP
 
#define IMAGE_FMT_1BPP_COMP_RLE4   GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE4
 
#define IMAGE_FMT_4BPP_COMP_RLE4   GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE4
 
#define IMAGE_FMT_1BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE8
 
#define IMAGE_FMT_2BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_2BPP_COMP_RLE8
 
#define IMAGE_FMT_4BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE8
 
#define IMAGE_FMT_8BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_8BPP_COMP_RLE8
 
#define IMAGE_FMT_8BPP_COMP_RLEBLEND   GRAPHICS_IMAGE_FMT_8BPP_COMP_RLEBLEND
 
#define tFontEx   Graphics_FontEx
 
#define tFont   Graphics_Font
 
#define tDisplay   Graphics_Display
 
#define tRectangle   Graphics_Rectangle
 
#define tImage   Graphics_Image
 
#define tContext   Graphics_Context
 
#define sXMax   xMax
 
#define sXMin   xMin
 
#define sYMax   yMax
 
#define sYMin   yMin
 
#define GrCircleDraw   Graphics_drawCircle
 
#define GrCircleFill   Graphics_fillCircle
 
#define GrContextClipRegionSet   Graphics_setClipRegion
 
#define GrContextInit   Graphics_initContext
 
#define GrImageDraw   Graphics_drawImage
 
#define GrLineDraw   Graphics_drawLine
 
#define GrLineDrawH   Graphics_drawLineH
 
#define GrLineDrawV   Graphics_drawLineV
 
#define GrRectDraw   Graphics_drawRectangle
 
#define GrRectFill   Graphics_fillRectangle
 
#define GrStringDraw   Graphics_drawString
 
#define GrStringWidthGet   Graphics_getStringWidth
 
#define GrRectOverlapCheck   Graphics_isOverlappingRectangle
 
#define GrRectIntersectGet   Graphics_getRectangleIntersection
 
#define GrContextBackgroundSet   Graphics_setBackgroundColor
 
#define GrContextBackgroundSetTranslated   Graphics_setBackgroundColorTranslated
 
#define GrContextDpyWidthGet   Graphics_getDisplayWidth
 
#define GrContextDpyHeightGet   Graphics_getDisplayHeight
 
#define GrContextFontSet   Graphics_setFont
 
#define GrContextForegroundSet   Graphics_setForegroundColor
 
#define GrContextForegroundSetTranslated   Graphics_setForegroundColorTranslated
 
#define GrFlush   Graphics_flushBuffer
 
#define GrClearDisplay   Graphics_clearDisplay
 
#define GrFontBaselineGet   Graphics_getFontBaseline
 
#define GrFontHeightGet   Graphics_getFontHeight
 
#define GrFontMaxWidthGet   Graphics_getFontMaxWidth
 
#define GrImageColorsGet   Graphics_getImageColors
 
#define GrImageHeightGet   Graphics_getImageHeight
 
#define GrImageWidthGet   Graphics_getImageWidth
 
#define GrOffScreen1BPPSize   Graphics_getOffscreen1BppImageSize
 
#define GrOffScreen4BPPSize   Graphics_getOffscreen4BppImageSize
 
#define GrOffScreen8BPPSize   Graphics_getOffscreen8BppImageSize
 
#define GrPixelDraw   Graphics_drawPixel
 
#define GrStringBaselineGet   Graphics_getStringBaseline
 
#define GrStringDrawCentered   Graphics_drawStringCentered
 
#define GrStringHeightGet   Graphics_getStringHeight
 
#define GrStringMaxWidthGet   Graphics_getStringMaxWidth
 
#define DpyColorTranslate   Graphics_translateColorOnDisplay
 
#define DpyFlush   Graphics_flushOnDisplay
 
#define DpyClearDisplay   Graphics_clearDisplayOnDisplay
 
#define DpyHeightGet   Graphics_getHeightOfDisplay
 
#define DpyLineDrawH   Graphics_drawHorizontalLineOnDisplay
 
#define DpyLineDrawV   Graphics_drawVerticalLineOnDisplay
 
#define DpyPixelDraw   Graphics_drawPixelOnDisplay
 
#define DpyPixelDrawMultiple   Graphics_drawMultiplePixelsOnDisplay
 
#define DpyRectFill   Graphics_fillRectangleOnDisplay
 
#define DpyWidthGet   Graphics_getWidthOfDisplay
 
#define GrRectContainsPoint   Graphics_isPointWithinRectangle
 
#define GRAPHICS_FONT_FMT_UNCOMPRESSED   0x00
 Indicates that the font data is stored in an uncompressed format. More...
 
#define GRAPHICS_FONT_FMT_PIXEL_RLE   0x01
 Indicates that the font data is stored using a pixel-based RLE format. More...
 
#define GRAPHICS_FONT_EX_MARKER   0x80
 
#define GRAPHICS_FONT_FMT_EX_UNCOMPRESSED   (FONT_FMT_UNCOMPRESSED | FONT_EX_MARKER)
 
#define GRAPHICS_FONT_FMT_EX_PIXEL_RLE   (FONT_FMT_PIXEL_RLE | FONT_EX_MARKER)
 
#define GRAPHICS_AUTO_STRING_LENGTH   -1
 
#define GRAPHICS_OPAQUE_TEXT   1
 
#define GRAPHICS_TRANSPARENT_TEXT   0
 
#define GRAPHICS_IMAGE_FMT_1BPP_UNCOMP   0x01
 
#define GRAPHICS_IMAGE_FMT_2BPP_UNCOMP   0x02
 
#define GRAPHICS_IMAGE_FMT_4BPP_UNCOMP   0x04
 
#define GRAPHICS_IMAGE_FMT_8BPP_UNCOMP   0x08
 
#define GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE4   0x41
 
#define GRAPHICS_IMAGE_FMT_2BPP_COMP_RLE4   0x42
 
#define GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE4   0x44
 
#define GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE8   0x81
 
#define GRAPHICS_IMAGE_FMT_2BPP_COMP_RLE8   0x82
 
#define GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE8   0x84
 
#define GRAPHICS_IMAGE_FMT_8BPP_COMP_RLE8   0x88
 
#define GRAPHICS_IMAGE_FMT_8BPP_COMP_RLEBLEND   0x28
 
#define GRAPHICS_COLOR_ALICE_BLUE   0x00F0F8FF
 
#define GRAPHICS_COLOR_ANTIQUE_WHITE   0x00FAEBD7
 
#define GRAPHICS_COLOR_AQUA   0x0000FFFF
 
#define GRAPHICS_COLOR_AQUAMARINE   0x007FFFD4
 
#define GRAPHICS_COLOR_AZURE   0x00F0FFFF
 
#define GRAPHICS_COLOR_BEIGE   0x00F5F5DC
 
#define GRAPHICS_COLOR_BISQUE   0x00FFE4C4
 
#define GRAPHICS_COLOR_BLACK   0x00000000
 
#define GRAPHICS_COLOR_BLACK   0x00000000
 
#define GRAPHICS_COLOR_BLANCHED_ALMOND   0x00FFEBCD
 
#define GRAPHICS_COLOR_BLUE   0x000000FF
 
#define GRAPHICS_COLOR_BLUE_VIOLET   0x008A2BE2
 
#define GRAPHICS_COLOR_BROWN   0x00A52A2A
 
#define GRAPHICS_COLOR_BURLY_WOOD   0x00DEB887
 
#define GRAPHICS_COLOR_CADET_BLUE   0x005F9EA0
 
#define GRAPHICS_COLOR_CHARTREUSE   0x007FFF00
 
#define GRAPHICS_COLOR_CHOCOLATE   0x00D2691E
 
#define GRAPHICS_COLOR_CORAL   0x00FF7F50
 
#define GRAPHICS_COLOR_CORNFLOWER_BLUE   0x006495ED
 
#define GRAPHICS_COLOR_CORNSILK   0x00FFF8DC
 
#define GRAPHICS_COLOR_CRIMSON   0x00DC143C
 
#define GRAPHICS_COLOR_CYAN   0x0000FFFF
 
#define GRAPHICS_COLOR_DARK_BLUE   0x0000008B
 
#define GRAPHICS_COLOR_DARK_CYAN   0x00008B8B
 
#define GRAPHICS_COLOR_DARK_GOLDENROD   0x00B8860B
 
#define GRAPHICS_COLOR_DARK_GRAY   0x00A9A9A9
 
#define GRAPHICS_COLOR_DARK_GREEN   0x00006400
 
#define GRAPHICS_COLOR_DARK_KHAKI   0x00BDB76B
 
#define GRAPHICS_COLOR_DARK_MAGENTA   0x008B008B
 
#define GRAPHICS_COLOR_DARK_OLIVE_GREEN   0x00556B2F
 
#define GRAPHICS_COLOR_DARK_ORANGE   0x00FF8C00
 
#define GRAPHICS_COLOR_DARK_ORCHID   0x009932CC
 
#define GRAPHICS_COLOR_DARK_RED   0x008B0000
 
#define GRAPHICS_COLOR_DARK_SALMON   0x00E9967A
 
#define GRAPHICS_COLOR_DARK_SEA_GREEN   0x008FBC8F
 
#define GRAPHICS_COLOR_DARK_SLATE_BLUE   0x00483D8B
 
#define GRAPHICS_COLOR_DARK_SLATE_GRAY   0x002F4F4F
 
#define GRAPHICS_COLOR_DARK_TURQUOISE   0x0000CED1
 
#define GRAPHICS_COLOR_DARK_VIOLET   0x009400D3
 
#define GRAPHICS_COLOR_DEEP_PINK   0x00FF1493
 
#define GRAPHICS_COLOR_DEEP_SKY_BLUE   0x0000BFFF
 
#define GRAPHICS_COLOR_DIM_GRAY   0x00696969
 
#define GRAPHICS_COLOR_DODGER_BLUE   0x001E90FF
 
#define GRAPHICS_COLOR_FIRE_BRICK   0x00B22222
 
#define GRAPHICS_COLOR_FLORAL_WHITE   0x00FFFAF0
 
#define GRAPHICS_COLOR_FOREST_GREEN   0x00228B22
 
#define GRAPHICS_COLOR_FUCHSIA   0x00FF00FF
 
#define GRAPHICS_COLOR_GAINSBORO   0x00DCDCDC
 
#define GRAPHICS_COLOR_GHOST_WHITE   0x00F8F8FF
 
#define GRAPHICS_COLOR_GOLD   0x00FFD700
 
#define GRAPHICS_COLOR_GOLDENRON   0x00DAA520
 
#define GRAPHICS_COLOR_GRAY   0x00808080
 
#define GRAPHICS_COLOR_GREEN   0x00008000
 
#define GRAPHICS_COLOR_GREEN_YELLOW   0x00ADFF2F
 
#define GRAPHICS_COLOR_HONEYDEW   0x00F0FFF0
 
#define GRAPHICS_COLOR_HOT_PINK   0x00FF69B4
 
#define GRAPHICS_COLOR_INDIAN_RED   0x00CD5C5C
 
#define GRAPHICS_COLOR_INDIGO   0x004B0082
 
#define GRAPHICS_COLOR_IVORY   0x00FFFFF0
 
#define GRAPHICS_COLOR_KHAKI   0x00F0E68C
 
#define GRAPHICS_COLOR_LAVENDER   0x00E6E6FA
 
#define GRAPHICS_COLOR_LAVENDER_BLUSH   0x00FFF0F5
 
#define GRAPHICS_COLOR_LAWN_GREEN   0x007CFC00
 
#define GRAPHICS_COLOR_LEMON_CHIFFON   0x00FFFACD
 
#define GRAPHICS_COLOR_LIGHT_BLUE   0x00ADD8E6
 
#define GRAPHICS_COLOR_LIGHT_CORAL   0x00F08080
 
#define GRAPHICS_COLOR_LIGHT_CYAN   0x00E0FFFF
 
#define GRAPHICS_COLOR_LIGHT_GOLDENRON_YELLOW   0x00FAFAD2
 
#define GRAPHICS_COLOR_LIGHT_GREEN   0x0090EE90
 
#define GRAPHICS_COLOR_LIGHT_GRAY   0x00D3D3D3
 
#define GRAPHICS_COLOR_LIGHT_PINK   0x00FFB6C1
 
#define GRAPHICS_COLOR_LIGHT_SALMON   0x00FFA07A
 
#define GRAPHICS_COLOR_LIGHT_SEA_GREEN   0x0020B2AA
 
#define GRAPHICS_COLOR_LIGHT_SKY_BLUE   0x0087CEFA
 
#define GRAPHICS_COLOR_LIGHT_SLATE_GRAY   0x00778899
 
#define GRAPHICS_COLOR_LIGHT_STEEL_BLUE   0x00B0C4DE
 
#define GRAPHICS_COLOR_LIGHT_YELLOW   0x00FFFFE0
 
#define GRAPHICS_COLOR_LIME   0x0000FF00
 
#define GRAPHICS_COLOR_LIME_GREEN   0x0032CD32
 
#define GRAPHICS_COLOR_LINEN   0x00FAF0E6
 
#define GRAPHICS_COLOR_MAGENTA   0x00FF00FF
 
#define GRAPHICS_COLOR_MAROON   0x00800000
 
#define GRAPHICS_COLOR_MEDIUM_AQUAMARINE   0x0066CDAA
 
#define GRAPHICS_COLOR_MEDIUM_BLUE   0x000000CD
 
#define GRAPHICS_COLOR_MEDIUM_ORCHID   0x00BA55D3
 
#define GRAPHICS_COLOR_MEDIUM_PURPLE   0x009370DB
 
#define GRAPHICS_COLOR_MEDIUM_SEA_GREEN   0x003CB371
 
#define GRAPHICS_COLOR_MEDIUM_SLATE_BLUE   0x007B68EE
 
#define GRAPHICS_COLOR_MEDIUM_SPRING_GREEN   0x0000FA9A
 
#define GRAPHICS_COLOR_MEDIUM_TURQUOISE   0x0048D1CC
 
#define GRAPHICS_COLOR_MEDIUM_VIOLET_RED   0x00C71585
 
#define GRAPHICS_COLOR_MIGNIGHT_BLUE   0x00191970
 
#define GRAPHICS_COLOR_MINT_CREAM   0x00F5FFFA
 
#define GRAPHICS_COLOR_MISTY_ROSE   0x00FFE4E1
 
#define GRAPHICS_COLOR_MOCCASIN   0x00FFE4B5
 
#define GRAPHICS_COLOR_NAVAJO_WHITE   0x00FFDEAD
 
#define GRAPHICS_COLOR_NAVY   0x00000080
 
#define GRAPHICS_COLOR_OLD_LACE   0x00FDF5E6
 
#define GRAPHICS_COLOR_OLIVE   0x00808000
 
#define GRAPHICS_COLOR_OLIVE_DRAB   0x006B8E23
 
#define GRAPHICS_COLOR_ORANGE   0x00FFA500
 
#define GRAPHICS_COLOR_ORANGE_RED   0x00FF4500
 
#define GRAPHICS_COLOR_ORCHID   0x00DA70D6
 
#define GRAPHICS_COLOR_PALE_GOLDENRON   0x00EEE8AA
 
#define GRAPHICS_COLOR_PALE_GREEN   0x0098FB98
 
#define GRAPHICS_COLOR_PALE_TURQUOISE   0x00AFEEEE
 
#define GRAPHICS_COLOR_PALE_VIOLET_RED   0x00DB7093
 
#define GRAPHICS_COLOR_PAPAYA_WHIP   0x00FFEFD5
 
#define GRAPHICS_COLOR_PEACH_PUFF   0x00FFDAB9
 
#define GRAPHICS_COLOR_PERU   0x00CD853F
 
#define GRAPHICS_COLOR_PINK   0x00FFC0CB
 
#define GRAPHICS_COLOR_PLUM   0x00DDA0DD
 
#define GRAPHICS_COLOR_POWDER_BLUE   0x00B0E0E6
 
#define GRAPHICS_COLOR_PURPLE   0x00800080
 
#define GRAPHICS_COLOR_RED   0x00FF0000
 
#define GRAPHICS_COLOR_ROSY_BROWN   0x00BC8F8F
 
#define GRAPHICS_COLOR_ROYAL_BLUE   0x004169E1
 
#define GRAPHICS_COLOR_SADDLE_BROWN   0x008B4513
 
#define GRAPHICS_COLOR_SALMON   0x00FA8072
 
#define GRAPHICS_COLOR_SANDY_BROWN   0x00F4A460
 
#define GRAPHICS_COLOR_SEA_GREEN   0x002E8B57
 
#define GRAPHICS_COLOR_SEASHELL   0x00FFF5EE
 
#define GRAPHICS_COLOR_SIENNA   0x00A0522D
 
#define GRAPHICS_COLOR_SILVER   0x00C0C0C0
 
#define GRAPHICS_COLOR_SKY_BLUE   0x0087CEEB
 
#define GRAPHICS_COLOR_SLATE_BLUE   0x006A5ACD
 
#define GRAPHICS_COLOR_SLATE_GRAY   0x00708090
 
#define GRAPHICS_COLOR_SNOW   0x00FFFAFA
 
#define GRAPHICS_COLOR_SPRING_GREEN   0x0000FF7F
 
#define GRAPHICS_COLOR_STEEL_BLUE   0x004682B4
 
#define GRAPHICS_COLOR_TAN   0x00D2B48C
 
#define GRAPHICS_COLOR_TEAL   0x00008080
 
#define GRAPHICS_COLOR_THISTLE   0x00D8BFD8
 
#define GRAPHICS_COLOR_TOMATO   0x00FF6347
 
#define GRAPHICS_COLOR_TURQUOISE   0x0040E0D0
 
#define GRAPHICS_COLOR_VIOLET   0x00EE82EE
 
#define GRAPHICS_COLOR_WHEAT   0x00F5DEB3
 
#define GRAPHICS_COLOR_WHITE   0x00FFFFFF
 
#define GRAPHICS_COLOR_WHITE_SMOKE   0x00F5F5F5
 
#define GRAPHICS_COLOR_YELLOW   0x00FFFF00
 
#define GRAPHICS_COLOR_YELLOW_GREEN   0x009ACD32
 
#define ClrRedMask   0x00FF0000
 
#define ClrRedShift   16
 
#define ClrGreenMask   0x0000FF00
 
#define ClrGreenShift   8
 
#define ClrBlueMask   0x000000FF
 
#define ClrBlueShift   0
 
#define GrLangZhPRC   0x0804
 
#define GrLangZhTW   0x0404
 
#define GrLangEnUS   0x0409
 
#define GrLangEnUK   0x0809
 
#define GrLangEnAUS   0x0C09
 
#define GrLangEnCA   0x1009
 
#define GrLangEnNZ   0x1409
 
#define GrLangFr   0x040C
 
#define GrLangDe   0x0407
 
#define GrLangHi   0x0439
 
#define GrLangIt   0x0410
 
#define GrLangJp   0x0411
 
#define GrLangKo   0x0412
 
#define GrLangEsMX   0x080A
 
#define GrLangEsSP   0x0C0A
 
#define GrLangSwKE   0x0441
 
#define GrLangUrIN   0x0820
 
#define GrLangUrPK   0x0420
 

Typedefs

typedef struct Graphics_Image Graphics_Image
 This structure defines the characteristics of a Bitmap Image. More...
 
typedef struct Graphics_Rectangle Graphics_Rectangle
 
typedef struct Graphics_Display Graphics_Display
 This structure defines the characteristics of a display driver. More...
 
typedef struct Graphics_Font Graphics_Font
 This structure describes a font used for drawing text onto the screen. More...
 
typedef struct Graphics_FontEx Graphics_FontEx
 
typedef struct Graphics_Context Graphics_Context
 

Functions

void Graphics_drawCircle (const Graphics_Context *context, int32_t x, int32_t y, int32_t lRadius)
 
void Graphics_fillCircle (const Graphics_Context *context, int32_t x, int32_t y, int32_t lRadius)
 
void Graphics_setClipRegion (Graphics_Context *context, Graphics_Rectangle *rect)
 
void Graphics_initContext (Graphics_Context *context, const Graphics_Display *display)
 
void Graphics_drawImage (const Graphics_Context *context, const Graphics_Image *pBitmap, int16_t x, int16_t y)
 
void Graphics_drawLine (const Graphics_Context *context, int32_t x1, int32_t y1, int32_t x2, int32_t y2)
 
void Graphics_drawLineH (const Graphics_Context *context, int32_t x1, int32_t x2, int32_t y)
 
void Graphics_drawLineV (const Graphics_Context *context, int32_t x, int32_t y1, int32_t y2)
 
void Graphics_drawRectangle (const Graphics_Context *context, const Graphics_Rectangle *rect)
 
void Graphics_fillRectangle (const Graphics_Context *context, const Graphics_Rectangle *rect)
 
void Graphics_drawString (const Graphics_Context *context, int8_t *string, int32_t lLength, int32_t x, int32_t y, bool opaque)
 
int32_t Graphics_getStringWidth (const Graphics_Context *context, const int8_t *string, int32_t lLength)
 
int32_t Graphics_isOverlappingRectangle (Graphics_Rectangle *psRect1, Graphics_Rectangle *psRect2)
 
int32_t Graphics_getRectangleIntersection (Graphics_Rectangle *psRect1, Graphics_Rectangle *psRect2, Graphics_Rectangle *psIntersect)
 
void Graphics_setBackgroundColor (Graphics_Context *context, int32_t value)
 
uint16_t Graphics_getDisplayWidth (Graphics_Context *context)
 
uint16_t Graphics_getDisplayHeight (Graphics_Context *context)
 
void Graphics_setFont (Graphics_Context *context, const Graphics_Font *font)
 
uint8_t Graphics_getFontBaseline (const Graphics_Font *font)
 
void Graphics_setForegroundColor (Graphics_Context *context, int32_t value)
 
void Graphics_setForegroundColorTranslated (Graphics_Context *context, int32_t value)
 
uint8_t Graphics_getFontHeight (const Graphics_Font *font)
 
uint8_t Graphics_getFontMaxWidth (const Graphics_Font *font)
 
uint16_t Graphics_getImageColors (const Graphics_Image *image)
 
uint16_t Graphics_getImageHeight (const Graphics_Image *image)
 
uint16_t Graphics_getImageWidth (const Graphics_Image *image)
 
uint32_t Graphics_getOffscreen1BppImageSize (uint16_t width, uint16_t height)
 
uint32_t Graphics_getOffscreen4BppImageSize (uint16_t width, uint16_t height)
 
uint32_t Graphics_getOffScreen8BPPSize (uint16_t width, uint16_t height)
 
void Graphics_drawStringCentered (const Graphics_Context *context, int8_t *string, int32_t length, int32_t x, int32_t y, bool opaque)
 
uint8_t Graphics_getStringHeight (const Graphics_Context *context)
 
uint8_t Graphics_getStringMaxWidth (const Graphics_Context *context)
 
uint8_t Graphics_getStringBaseline (const Graphics_Context *context)
 
uint32_t Graphics_translateColorOnDisplay (const Graphics_Display *display, uint32_t value)
 
void Graphics_drawHorizontalLineOnDisplay (const Graphics_Display *display, uint16_t x1, uint16_t x2, uint16_t y, uint32_t value)
 
void Graphics_drawVerticalLineOnDisplay (const Graphics_Display *display, uint16_t x, uint16_t y1, uint16_t y2, uint16_t value)
 
void Graphics_fillRectangleOnDisplay (const Graphics_Display *display, const Graphics_Rectangle *rect, uint16_t value)
 
void Graphics_flushOnDisplay (const Graphics_Display *display)
 
void Graphics_drawPixel (const Graphics_Context *context, uint16_t x, uint16_t y)
 
void Graphics_clearDisplay (const Graphics_Context *context)
 
uint16_t Graphics_getHeightOfDisplay (const Graphics_Display *display)
 
void Graphics_flushBuffer (const Graphics_Context *context)
 
uint16_t Graphics_getWidthOfDisplay (const Graphics_Display *display)
 
bool Graphics_isPointWithinRectangle (const Graphics_Rectangle *rect, uint16_t x, uint16_t y)
 
void Graphics_drawPixelOnDisplay (const Graphics_Display *display, uint16_t x, uint16_t y, uint16_t value)
 
void Graphics_clearDisplayOnDisplay (const Graphics_Display *display, uint16_t value)
 
void Graphics_drawMultiplePixelsOnDisplay (const Graphics_Display *display, uint16_t x, uint16_t y, uint16_t x0, uint16_t count, uint16_t bPP, const uint8_t *data, const uint32_t *pucPalette)
 
void Graphics_initOffscreen1BppImage (Graphics_Display *display, uint8_t *image, int32_t width, int32_t height)
 
void Graphics_initOffscreen4BppImage (Graphics_Display *display, uint8_t *image, int32_t width, int32_t height)
 
void Graphics_setOffscreen4BppPalette (Graphics_Display *display, uint32_t *ppalette, uint32_t offset, uint32_t count)
 
void Graphics_initOffscreen8BppImage (Graphics_Display *display, uint8_t *image, int32_t width, int32_t height)
 
void Graphics_setOffscreen8BppPalette (Graphics_Display *display, uint32_t *ppalette, uint32_t offset, uint32_t count)
 

Variables

const Graphics_Font g_sFontCm12
 
const Graphics_Font g_sFontCm12b
 
const Graphics_Font g_sFontCm12i
 
const Graphics_Font g_sFontCm14
 
const Graphics_Font g_sFontCm14b
 
const Graphics_Font g_sFontCm14i
 
const Graphics_Font g_sFontCm16
 
const Graphics_Font g_sFontCm16b
 
const Graphics_Font g_sFontCm16i
 
const Graphics_Font g_sFontCm18
 
const Graphics_Font g_sFontCm18b
 
const Graphics_Font g_sFontCm18i
 
const Graphics_Font g_sFontCm20
 
const Graphics_Font g_sFontCm20b
 
const Graphics_Font g_sFontCm20i
 
const Graphics_Font g_sFontCm22
 
const Graphics_Font g_sFontCm22b
 
const Graphics_Font g_sFontCm22i
 
const Graphics_Font g_sFontCm24
 
const Graphics_Font g_sFontCm24b
 
const Graphics_Font g_sFontCm24i
 
const Graphics_Font g_sFontCm26
 
const Graphics_Font g_sFontCm26b
 
const Graphics_Font g_sFontCm26i
 
const Graphics_Font g_sFontCm28
 
const Graphics_Font g_sFontCm28b
 
const Graphics_Font g_sFontCm28i
 
const Graphics_Font g_sFontCm30
 
const Graphics_Font g_sFontCm30b
 
const Graphics_Font g_sFontCm30i
 
const Graphics_Font g_sFontCm32
 
const Graphics_Font g_sFontCm32b
 
const Graphics_Font g_sFontCm32i
 
const Graphics_Font g_sFontCm34
 
const Graphics_Font g_sFontCm34b
 
const Graphics_Font g_sFontCm34i
 
const Graphics_Font g_sFontCm36
 
const Graphics_Font g_sFontCm36b
 
const Graphics_Font g_sFontCm36i
 
const Graphics_Font g_sFontCm38
 
const Graphics_Font g_sFontCm38b
 
const Graphics_Font g_sFontCm38i
 
const Graphics_Font g_sFontCm40
 
const Graphics_Font g_sFontCm40b
 
const Graphics_Font g_sFontCm40i
 
const Graphics_Font g_sFontCm42
 
const Graphics_Font g_sFontCm42b
 
const Graphics_Font g_sFontCm42i
 
const Graphics_Font g_sFontCm44
 
const Graphics_Font g_sFontCm44b
 
const Graphics_Font g_sFontCm44i
 
const Graphics_Font g_sFontCm46
 
const Graphics_Font g_sFontCm46b
 
const Graphics_Font g_sFontCm46i
 
const Graphics_Font g_sFontCm48
 
const Graphics_Font g_sFontCm48b
 
const Graphics_Font g_sFontCm48i
 
const Graphics_Font g_sFontCmsc12
 
const Graphics_Font g_sFontCmsc14
 
const Graphics_Font g_sFontCmsc16
 
const Graphics_Font g_sFontCmsc18
 
const Graphics_Font g_sFontCmsc20
 
const Graphics_Font g_sFontCmsc22
 
const Graphics_Font g_sFontCmsc24
 
const Graphics_Font g_sFontCmsc26
 
const Graphics_Font g_sFontCmsc28
 
const Graphics_Font g_sFontCmsc30
 
const Graphics_Font g_sFontCmsc32
 
const Graphics_Font g_sFontCmsc34
 
const Graphics_Font g_sFontCmsc36
 
const Graphics_Font g_sFontCmsc38
 
const Graphics_Font g_sFontCmsc40
 
const Graphics_Font g_sFontCmsc42
 
const Graphics_Font g_sFontCmsc44
 
const Graphics_Font g_sFontCmsc46
 
const Graphics_Font g_sFontCmsc48
 
const Graphics_Font g_sFontCmss12
 
const Graphics_Font g_sFontCmss12b
 
const Graphics_Font g_sFontCmss12i
 
const Graphics_Font g_sFontCmss14
 
const Graphics_Font g_sFontCmss14b
 
const Graphics_Font g_sFontCmss14i
 
const Graphics_Font g_sFontCmss16
 
const Graphics_Font g_sFontCmss16b
 
const Graphics_Font g_sFontCmss16i
 
const Graphics_Font g_sFontCmss18
 
const Graphics_Font g_sFontCmss18b
 
const Graphics_Font g_sFontCmss18i
 
const Graphics_Font g_sFontCmss20
 
const Graphics_Font g_sFontCmss20b
 
const Graphics_Font g_sFontCmss20i
 
const Graphics_Font g_sFontCmss22
 
const Graphics_Font g_sFontCmss22b
 
const Graphics_Font g_sFontCmss22i
 
const Graphics_Font g_sFontCmss24
 
const Graphics_Font g_sFontCmss24b
 
const Graphics_Font g_sFontCmss24i
 
const Graphics_Font g_sFontCmss26
 
const Graphics_Font g_sFontCmss26b
 
const Graphics_Font g_sFontCmss26i
 
const Graphics_Font g_sFontCmss28
 
const Graphics_Font g_sFontCmss28b
 
const Graphics_Font g_sFontCmss28i
 
const Graphics_Font g_sFontCmss30
 
const Graphics_Font g_sFontCmss30b
 
const Graphics_Font g_sFontCmss30i
 
const Graphics_Font g_sFontCmss32
 
const Graphics_Font g_sFontCmss32b
 
const Graphics_Font g_sFontCmss32i
 
const Graphics_Font g_sFontCmss34
 
const Graphics_Font g_sFontCmss34b
 
const Graphics_Font g_sFontCmss34i
 
const Graphics_Font g_sFontCmss36
 
const Graphics_Font g_sFontCmss36b
 
const Graphics_Font g_sFontCmss36i
 
const Graphics_Font g_sFontCmss38
 
const Graphics_Font g_sFontCmss38b
 
const Graphics_Font g_sFontCmss38i
 
const Graphics_Font g_sFontCmss40
 
const Graphics_Font g_sFontCmss40b
 
const Graphics_Font g_sFontCmss40i
 
const Graphics_Font g_sFontCmss42
 
const Graphics_Font g_sFontCmss42b
 
const Graphics_Font g_sFontCmss42i
 
const Graphics_Font g_sFontCmss44
 
const Graphics_Font g_sFontCmss44b
 
const Graphics_Font g_sFontCmss44i
 
const Graphics_Font g_sFontCmss46
 
const Graphics_Font g_sFontCmss46b
 
const Graphics_Font g_sFontCmss46i
 
const Graphics_Font g_sFontCmss48
 
const Graphics_Font g_sFontCmss48b
 
const Graphics_Font g_sFontCmss48i
 
const Graphics_Font g_sFontCmtt12
 
const Graphics_Font g_sFontCmtt14
 
const Graphics_Font g_sFontCmtt16
 
const Graphics_Font g_sFontCmtt18
 
const Graphics_Font g_sFontCmtt20
 
const Graphics_Font g_sFontCmtt22
 
const Graphics_Font g_sFontCmtt24
 
const Graphics_Font g_sFontCmtt26
 
const Graphics_Font g_sFontCmtt28
 
const Graphics_Font g_sFontCmtt30
 
const Graphics_Font g_sFontCmtt32
 
const Graphics_Font g_sFontCmtt34
 
const Graphics_Font g_sFontCmtt36
 
const Graphics_Font g_sFontCmtt38
 
const Graphics_Font g_sFontCmtt40
 
const Graphics_Font g_sFontCmtt42
 
const Graphics_Font g_sFontCmtt44
 
const Graphics_Font g_sFontCmtt46
 
const Graphics_Font g_sFontCmtt48
 
const Graphics_Font g_sFontFixed6x8
 

Detailed Description

Macro Definition Documentation

#define min (   a,
 
)    (((a) < (b)) ? (a) : (b))
#define max (   a,
 
)    (((a) < (b)) ? (b) : (a))
#define ClrAliceBlue   GRAPHICS_COLOR_ALICE_BLUE
#define ClrAntiqueWhite   GRAPHICS_COLOR_ANTIQUE_WHITE
#define ClrAqua   GRAPHICS_COLOR_AQUA
#define ClrAquamarine   GRAPHICS_COLOR_AQUAMARINE
#define ClrAzure   GRAPHICS_COLOR_AZURE
#define ClrBeige   GRAPHICS_COLOR_BEIGE
#define ClrBisque   GRAPHICS_COLOR_BISQUE
#define ClrBlack   GRAPHICS_COLOR_BLACK
#define ClrBlack   GRAPHICS_COLOR_BLACK
#define ClrBlanchedAlmond   GRAPHICS_COLOR_BLANCHED_ALMOND
#define ClrBlue   GRAPHICS_COLOR_BLUE
#define ClrBlueViolet   GRAPHICS_COLOR_BLUE_VIOLET
#define ClrBrown   GRAPHICS_COLOR_BROWN
#define ClrBurlyWood   GRAPHICS_COLOR_BURLY_WOOD
#define ClrCadetBlue   GRAPHICS_COLOR_CADET_BLUE
#define ClrChartreuse   GRAPHICS_COLOR_CHARTREUSE
#define ClrChocolate   GRAPHICS_COLOR_CHOCOLATE
#define ClrCoral   GRAPHICS_COLOR_CORAL
#define ClrCornflowerBlue   GRAPHICS_COLOR_CORNFLOWER_BLUE
#define ClrCornsilk   GRAPHICS_COLOR_CORNSILK
#define ClrCrimson   GRAPHICS_COLOR_CRIMSON
#define ClrCyan   GRAPHICS_COLOR_CYAN
#define ClrDarkBlue   GRAPHICS_COLOR_DARK_BLUE
#define ClrDarkCyan   GRAPHICS_COLOR_DARK_CYAN
#define ClrDarkGoldenrod   GRAPHICS_COLOR_DARK_GOLDENROD
#define ClrDarkGray   GRAPHICS_COLOR_DARK_GRAY
#define ClrDarkGreen   GRAPHICS_COLOR_DARK_GREEN
#define ClrDarkKhaki   GRAPHICS_COLOR_DARK_KHAKI
#define ClrDarkMagenta   GRAPHICS_COLOR_DARK_MAGENTA
#define ClrDarkOliveGreen   GRAPHICS_COLOR_DARK_OLIVE_GREEN
#define ClrDarkOrange   GRAPHICS_COLOR_DARK_ORANGE
#define ClrDarkOrchid   GRAPHICS_COLOR_DARK_ORCHID
#define ClrDarkRed   GRAPHICS_COLOR_DARK_RED
#define ClrDarkSalmon   GRAPHICS_COLOR_DARK_SALMON
#define ClrDarkSeaGreen   GRAPHICS_COLOR_DARK_SEA_GREEN
#define ClrDarkSlateBlue   GRAPHICS_COLOR_DARK_SLATE_BLUE
#define ClrDarkSlateGray   GRAPHICS_COLOR_DARK_SLATE_GRAY
#define ClrDarkTurquoise   GRAPHICS_COLOR_DARK_TURQUOISE
#define ClrDarkViolet   GRAPHICS_COLOR_DARK_VIOLET
#define ClrDeepPink   GRAPHICS_COLOR_DEEP_PINK
#define ClrDeepSkyBlue   GRAPHICS_COLOR_DEEP_SKY_BLUE
#define ClrDimGray   GRAPHICS_COLOR_DIM_GRAY
#define ClrDodgerBlue   GRAPHICS_COLOR_DODGER_BLUE
#define ClrFireBrick   GRAPHICS_COLOR_FIRE_BRICK
#define ClrFloralWhite   GRAPHICS_COLOR_FLORAL_WHITE
#define ClrForestGreen   GRAPHICS_COLOR_FOREST_GREEN
#define ClrFuchsia   GRAPHICS_COLOR_FUCHSIA
#define ClrGainsboro   GRAPHICS_COLOR_GAINSBORO
#define ClrGhostWhite   GRAPHICS_COLOR_GHOST_WHITE
#define ClrGold   GRAPHICS_COLOR_GOLD
#define ClrGoldenrod   GRAPHICS_COLOR_GOLDENRON
#define ClrGray   GRAPHICS_COLOR_GRAY
#define ClrGreen   GRAPHICS_COLOR_GREEN
#define ClrGreenYellow   GRAPHICS_COLOR_GREEN_YELLOW
#define ClrHoneydew   GRAPHICS_COLOR_HONEYDEW
#define ClrHotPink   GRAPHICS_COLOR_HOT_PINK
#define ClrIndianRed   GRAPHICS_COLOR_INDIAN_RED
#define ClrIndigo   GRAPHICS_COLOR_INDIGO
#define ClrIvory   GRAPHICS_COLOR_IVORY
#define ClrKhaki   GRAPHICS_COLOR_KHAKI
#define ClrLavender   GRAPHICS_COLOR_LAVENDER
#define ClrLavenderBlush   GRAPHICS_COLOR_LAVENDER_BLUSH
#define ClrLawnGreen   GRAPHICS_COLOR_LAWN_GREEN
#define ClrLemonChiffon   GRAPHICS_COLOR_LEMON_CHIFFON
#define ClrLightBlue   GRAPHICS_COLOR_LIGHT_BLUE
#define ClrLightCoral   GRAPHICS_COLOR_LIGHT_CORAL
#define ClrLightCyan   GRAPHICS_COLOR_LIGHT_CYAN
#define ClrLightGoldenrodYellow   GRAPHICS_COLOR_LIGHT_GOLDENRON_YELLOW
#define ClrLightGreen   GRAPHICS_COLOR_LIGHT_GREEN
#define ClrLightGrey   GRAPHICS_COLOR_LIGHT_GRAY
#define ClrLightPink   GRAPHICS_COLOR_LIGHT_PINK
#define ClrLightSalmon   GRAPHICS_COLOR_LIGHT_SALMON
#define ClrLightSeaGreen   GRAPHICS_COLOR_LIGHT_SEA_GREEN
#define ClrLightSkyBlue   GRAPHICS_COLOR_LIGHT_SKY_BLUE
#define ClrLightSlateGray   GRAPHICS_COLOR_LIGHT_SLATE_GRAY
#define ClrLightSteelBlue   GRAPHICS_COLOR_LIGHT_STEEL_BLUE
#define ClrLightYellow   GRAPHICS_COLOR_LIGHT_YELLOW
#define ClrLime   GRAPHICS_COLOR_LIME
#define ClrLimeGreen   GRAPHICS_COLOR_LIME_GREEN
#define ClrLinen   GRAPHICS_COLOR_LINEN
#define ClrMagenta   GRAPHICS_COLOR_MAGENTA
#define ClrMaroon   GRAPHICS_COLOR_MAROON
#define ClrMediumAquamarine   GRAPHICS_COLOR_MEDIUM_AQUAMARINE
#define ClrMediumBlue   GRAPHICS_COLOR_MEDIUM_BLUE
#define ClrMediumOrchid   GRAPHICS_COLOR_MEDIUM_ORCHID
#define ClrMediumPurple   GRAPHICS_COLOR_MEDIUM_PURPLE
#define ClrMediumSeaGreen   GRAPHICS_COLOR_MEDIUM_SEA_GREEN
#define ClrMediumSlateBlue   GRAPHICS_COLOR_MEDIUM_SLATE_BLUE
#define ClrMediumSpringGreen   GRAPHICS_COLOR_MEDIUM_SPRING_GREEN
#define ClrMediumTurquoise   GRAPHICS_COLOR_MEDIUM_TURQUOISE
#define ClrMediumVioletRed   GRAPHICS_COLOR_MEDIUM_VIOLET_RED
#define ClrMidnightBlue   GRAPHICS_COLOR_MIGNIGHT_BLUE
#define ClrMintCream   GRAPHICS_COLOR_MINT_CREAM
#define ClrMistyRose   GRAPHICS_COLOR_MISTY_ROSE
#define ClrMoccasin   GRAPHICS_COLOR_MOCCASIN
#define ClrNavajoWhite   GRAPHICS_COLOR_NAVAJO_WHITE
#define ClrNavy   GRAPHICS_COLOR_NAVY
#define ClrOldLace   GRAPHICS_COLOR_OLD_LACE
#define ClrOlive   GRAPHICS_COLOR_OLIVE
#define ClrOliveDrab   GRAPHICS_COLOR_OLIVE_DRAB
#define ClrOrange   GRAPHICS_COLOR_ORANGE
#define ClrOrangeRed   GRAPHICS_COLOR_ORANGE_RED
#define ClrOrchid   GRAPHICS_COLOR_ORCHID
#define ClrPaleGoldenrod   GRAPHICS_COLOR_PALE_GOLDENRON
#define ClrPaleGreen   GRAPHICS_COLOR_PALE_GREEN
#define ClrPaleTurquoise   GRAPHICS_COLOR_PALE_TURQUOISE
#define ClrPaleVioletRed   GRAPHICS_COLOR_PALE_VIOLET_RED
#define ClrPapayaWhip   GRAPHICS_COLOR_PAPAYA_WHIP
#define ClrPeachPuff   GRAPHICS_COLOR_PEACH_PUFF
#define ClrPeru   GRAPHICS_COLOR_PERU
#define ClrPink   GRAPHICS_COLOR_PINK
#define ClrPlum   GRAPHICS_COLOR_PLUM
#define ClrPowderBlue   GRAPHICS_COLOR_POWDER_BLUE
#define ClrPurple   GRAPHICS_COLOR_PURPLE
#define ClrRed   GRAPHICS_COLOR_RED
#define ClrRosyBrown   GRAPHICS_COLOR_ROSY_BROWN
#define ClrRoyalBlue   GRAPHICS_COLOR_ROYAL_BLUE
#define ClrSaddleBrown   GRAPHICS_COLOR_SADDLE_BROWN
#define ClrSalmon   GRAPHICS_COLOR_SALMON
#define ClrSandyBrown   GRAPHICS_COLOR_SANDY_BROWN
#define ClrSeaGreen   GRAPHICS_COLOR_SEA_GREEN
#define ClrSeashell   GRAPHICS_COLOR_SEASHELL
#define ClrSienna   GRAPHICS_COLOR_SIENNA
#define ClrSilver   GRAPHICS_COLOR_SILVER
#define ClrSkyBlue   GRAPHICS_COLOR_SKY_BLUE
#define ClrSlateBlue   GRAPHICS_COLOR_SLATE_BLUE
#define ClrSlateGray   GRAPHICS_COLOR_SLATE_GRAY
#define ClrSnow   GRAPHICS_COLOR_SNOW
#define ClrSpringGreen   GRAPHICS_COLOR_SPRING_GREEN
#define ClrSteelBlue   GRAPHICS_COLOR_STEEL_BLUE
#define ClrTan   GRAPHICS_COLOR_TAN
#define ClrTeal   GRAPHICS_COLOR_TEAL
#define ClrThistle   GRAPHICS_COLOR_THISTLE
#define ClrTomato   GRAPHICS_COLOR_TOMATO
#define ClrTurquoise   GRAPHICS_COLOR_TURQUOISE
#define ClrViolet   GRAPHICS_COLOR_VIOLET
#define ClrWheat   GRAPHICS_COLOR_WHEAT
#define ClrWhite   GRAPHICS_COLOR_WHITE
#define ClrWhiteSmoke   GRAPHICS_COLOR_WHITE_SMOKE
#define ClrYellow   GRAPHICS_COLOR_YELLOW
#define ClrYellowGreen   GRAPHICS_COLOR_YELLOW_GREEN
#define FONT_FMT_UNCOMPRESSED   GRAPHICS_FONT_FMT_UNCOMPRESSED
#define FONT_FMT_PIXEL_RLE   GRAPHICS_FONT_FMT_PIXEL_RLE
#define FONT_EX_MARKER   GRAPHICS_FONT_EX_MARKER
#define FONT_FMT_EX_UNCOMPRESSED   GRAPHICS_FONT_FMT_EX_UNCOMPRESSED
#define FONT_FMT_EX_PIXEL_RLE   GRAPHICS_FONT_FMT_EX_PIXEL_RLE
#define AUTO_STRING_LENGTH   GRAPHICS_AUTO_STRING_LENGTH
#define OPAQUE_TEXT   GRAPHICS_OPAQUE_TEXT
#define TRANSPARENT_TEXT   GRAPHICS_TRANSPARENT_TEXT
#define IMAGE_FMT_1BPP_UNCOMP   GRAPHICS_IMAGE_FMT_1BPP_UNCOMP
#define IMAGE_FMT_2BPP_UNCOMP   GRAPHICS_IMAGE_FMT_2BPP_UNCOMP
#define IMAGE_FMT_2BPP_UNCOMP   GRAPHICS_IMAGE_FMT_2BPP_UNCOMP
#define IMAGE_FMT_4BPP_UNCOMP   GRAPHICS_IMAGE_FMT_4BPP_UNCOMP
#define IMAGE_FMT_8BPP_UNCOMP   GRAPHICS_IMAGE_FMT_8BPP_UNCOMP
#define IMAGE_FMT_1BPP_COMP_RLE4   GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE4
#define IMAGE_FMT_4BPP_COMP_RLE4   GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE4
#define IMAGE_FMT_1BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE8
#define IMAGE_FMT_2BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_2BPP_COMP_RLE8
#define IMAGE_FMT_4BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE8
#define IMAGE_FMT_8BPP_COMP_RLE8   GRAPHICS_IMAGE_FMT_8BPP_COMP_RLE8
#define IMAGE_FMT_8BPP_COMP_RLEBLEND   GRAPHICS_IMAGE_FMT_8BPP_COMP_RLEBLEND
#define tFontEx   Graphics_FontEx
#define tFont   Graphics_Font
#define tDisplay   Graphics_Display
#define tRectangle   Graphics_Rectangle
#define tImage   Graphics_Image
#define tContext   Graphics_Context
#define sXMax   xMax
#define sXMin   xMin
#define sYMax   yMax
#define sYMin   yMin
#define GrCircleDraw   Graphics_drawCircle
#define GrCircleFill   Graphics_fillCircle
#define GrContextClipRegionSet   Graphics_setClipRegion
#define GrContextInit   Graphics_initContext
#define GrImageDraw   Graphics_drawImage
#define GrLineDraw   Graphics_drawLine
#define GrLineDrawH   Graphics_drawLineH
#define GrLineDrawV   Graphics_drawLineV
#define GrRectDraw   Graphics_drawRectangle
#define GrRectFill   Graphics_fillRectangle
#define GrStringDraw   Graphics_drawString
#define GrStringWidthGet   Graphics_getStringWidth
#define GrRectOverlapCheck   Graphics_isOverlappingRectangle
#define GrRectIntersectGet   Graphics_getRectangleIntersection
#define GrContextBackgroundSet   Graphics_setBackgroundColor
#define GrContextBackgroundSetTranslated   Graphics_setBackgroundColorTranslated
#define GrContextDpyWidthGet   Graphics_getDisplayWidth
#define GrContextDpyHeightGet   Graphics_getDisplayHeight
#define GrContextFontSet   Graphics_setFont
#define GrContextForegroundSet   Graphics_setForegroundColor
#define GrContextForegroundSetTranslated   Graphics_setForegroundColorTranslated
#define GrFlush   Graphics_flushBuffer
#define GrClearDisplay   Graphics_clearDisplay
#define GrFontBaselineGet   Graphics_getFontBaseline
#define GrFontHeightGet   Graphics_getFontHeight
#define GrFontMaxWidthGet   Graphics_getFontMaxWidth
#define GrImageColorsGet   Graphics_getImageColors
#define GrImageHeightGet   Graphics_getImageHeight
#define GrImageWidthGet   Graphics_getImageWidth
#define GrOffScreen1BPPSize   Graphics_getOffscreen1BppImageSize
#define GrOffScreen4BPPSize   Graphics_getOffscreen4BppImageSize
#define GrOffScreen8BPPSize   Graphics_getOffscreen8BppImageSize
#define GrPixelDraw   Graphics_drawPixel
#define GrStringBaselineGet   Graphics_getStringBaseline
#define GrStringDrawCentered   Graphics_drawStringCentered
#define GrStringHeightGet   Graphics_getStringHeight
#define GrStringMaxWidthGet   Graphics_getStringMaxWidth
#define DpyColorTranslate   Graphics_translateColorOnDisplay
#define DpyFlush   Graphics_flushOnDisplay
#define DpyClearDisplay   Graphics_clearDisplayOnDisplay
#define DpyHeightGet   Graphics_getHeightOfDisplay
#define DpyLineDrawH   Graphics_drawHorizontalLineOnDisplay
#define DpyLineDrawV   Graphics_drawVerticalLineOnDisplay
#define DpyPixelDraw   Graphics_drawPixelOnDisplay
#define DpyPixelDrawMultiple   Graphics_drawMultiplePixelsOnDisplay
#define DpyRectFill   Graphics_fillRectangleOnDisplay
#define DpyWidthGet   Graphics_getWidthOfDisplay
#define GrRectContainsPoint   Graphics_isPointWithinRectangle
#define GRAPHICS_FONT_FMT_UNCOMPRESSED   0x00

Indicates that the font data is stored in an uncompressed format.

Referenced by Graphics_drawString().

#define GRAPHICS_FONT_FMT_PIXEL_RLE   0x01

Indicates that the font data is stored using a pixel-based RLE format.

#define GRAPHICS_FONT_EX_MARKER   0x80

A marker used in the format field of a font to indicates that the font data is stored using the new tFontEx structure.

Referenced by Graphics_drawString(), and Graphics_getStringWidth().

#define GRAPHICS_FONT_FMT_EX_UNCOMPRESSED   (FONT_FMT_UNCOMPRESSED | FONT_EX_MARKER)

Indicates that the font data is stored in an uncompressed format and uses the tFontEx structure format.

#define GRAPHICS_FONT_FMT_EX_PIXEL_RLE   (FONT_FMT_PIXEL_RLE | FONT_EX_MARKER)

Indicates that the font data is stored using a pixel-based RLE format and uses the tFontEx structure format.

#define GRAPHICS_AUTO_STRING_LENGTH   -1

Value to automatically draw the entire length of the string (subject to clipping)

#define GRAPHICS_OPAQUE_TEXT   1

Value to draw text opaque The text foreground and background are drawn together

#define GRAPHICS_TRANSPARENT_TEXT   0

Value to draw text transparently The text only (no background) is drawn

#define GRAPHICS_IMAGE_FMT_1BPP_UNCOMP   0x01

Indicates that the image data is not compressed and represents each pixel with a single bit.

#define GRAPHICS_IMAGE_FMT_2BPP_UNCOMP   0x02

Indicates that the image data is not compressed and represents each pixel with two bits.

#define GRAPHICS_IMAGE_FMT_4BPP_UNCOMP   0x04

Indicates that the image data is not compressed and represents each pixel with four bits.

#define GRAPHICS_IMAGE_FMT_8BPP_UNCOMP   0x08

Indicates that the image data is not compressed and represents each pixel with eight bits.

#define GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE4   0x41

Indicates that the image data is compressed with 4 bit Run Length Encoding and represents each pixel with a single bit.

#define GRAPHICS_IMAGE_FMT_2BPP_COMP_RLE4   0x42

Indicates that the image data is compressed with 4 bit Run Length Encoding and represents each pixel with two bits.

#define GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE4   0x44

Indicates that the image data is compressed with 4 bit Run Length Encoding and represents each pixel with four bits.

#define GRAPHICS_IMAGE_FMT_1BPP_COMP_RLE8   0x81

Indicates that the image data is compressed with 8 bit Run Length Encoding and represents each pixel with a single bit.

#define GRAPHICS_IMAGE_FMT_2BPP_COMP_RLE8   0x82

Indicates that the image data is compressed with 8 bit Run Length Encoding and represents each pixel with two bits.

#define GRAPHICS_IMAGE_FMT_4BPP_COMP_RLE8   0x84

Indicates that the image data is compressed with 8 bit Run Length Encoding and represents each pixel with four bits.

#define GRAPHICS_IMAGE_FMT_8BPP_COMP_RLE8   0x88

Indicates that the image data is compressed with 8 bit Run Length Encoding and represents each pixel with eight bits.

#define GRAPHICS_IMAGE_FMT_8BPP_COMP_RLEBLEND   0x28

Indicates that the image data is compressed and represents each pixel with info bits.

#define GRAPHICS_COLOR_ALICE_BLUE   0x00F0F8FF
#define GRAPHICS_COLOR_ANTIQUE_WHITE   0x00FAEBD7
#define GRAPHICS_COLOR_AQUA   0x0000FFFF
#define GRAPHICS_COLOR_AQUAMARINE   0x007FFFD4
#define GRAPHICS_COLOR_AZURE   0x00F0FFFF
#define GRAPHICS_COLOR_BEIGE   0x00F5F5DC
#define GRAPHICS_COLOR_BISQUE   0x00FFE4C4
#define GRAPHICS_COLOR_BLACK   0x00000000
#define GRAPHICS_COLOR_BLACK   0x00000000
#define GRAPHICS_COLOR_BLANCHED_ALMOND   0x00FFEBCD
#define GRAPHICS_COLOR_BLUE   0x000000FF
#define GRAPHICS_COLOR_BLUE_VIOLET   0x008A2BE2
#define GRAPHICS_COLOR_BROWN   0x00A52A2A
#define GRAPHICS_COLOR_BURLY_WOOD   0x00DEB887
#define GRAPHICS_COLOR_CADET_BLUE   0x005F9EA0
#define GRAPHICS_COLOR_CHARTREUSE   0x007FFF00
#define GRAPHICS_COLOR_CHOCOLATE   0x00D2691E
#define GRAPHICS_COLOR_CORAL   0x00FF7F50
#define GRAPHICS_COLOR_CORNFLOWER_BLUE   0x006495ED
#define GRAPHICS_COLOR_CORNSILK   0x00FFF8DC
#define GRAPHICS_COLOR_CRIMSON   0x00DC143C
#define GRAPHICS_COLOR_CYAN   0x0000FFFF
#define GRAPHICS_COLOR_DARK_BLUE   0x0000008B
#define GRAPHICS_COLOR_DARK_CYAN   0x00008B8B
#define GRAPHICS_COLOR_DARK_GOLDENROD   0x00B8860B
#define GRAPHICS_COLOR_DARK_GRAY   0x00A9A9A9
#define GRAPHICS_COLOR_DARK_GREEN   0x00006400
#define GRAPHICS_COLOR_DARK_KHAKI   0x00BDB76B
#define GRAPHICS_COLOR_DARK_MAGENTA   0x008B008B
#define GRAPHICS_COLOR_DARK_OLIVE_GREEN   0x00556B2F
#define GRAPHICS_COLOR_DARK_ORANGE   0x00FF8C00
#define GRAPHICS_COLOR_DARK_ORCHID   0x009932CC
#define GRAPHICS_COLOR_DARK_RED   0x008B0000
#define GRAPHICS_COLOR_DARK_SALMON   0x00E9967A
#define GRAPHICS_COLOR_DARK_SEA_GREEN   0x008FBC8F
#define GRAPHICS_COLOR_DARK_SLATE_BLUE   0x00483D8B
#define GRAPHICS_COLOR_DARK_SLATE_GRAY   0x002F4F4F
#define GRAPHICS_COLOR_DARK_TURQUOISE   0x0000CED1
#define GRAPHICS_COLOR_DARK_VIOLET   0x009400D3
#define GRAPHICS_COLOR_DEEP_PINK   0x00FF1493
#define GRAPHICS_COLOR_DEEP_SKY_BLUE   0x0000BFFF
#define GRAPHICS_COLOR_DIM_GRAY   0x00696969
#define GRAPHICS_COLOR_DODGER_BLUE   0x001E90FF
#define GRAPHICS_COLOR_FIRE_BRICK   0x00B22222
#define GRAPHICS_COLOR_FLORAL_WHITE   0x00FFFAF0
#define GRAPHICS_COLOR_FOREST_GREEN   0x00228B22
#define GRAPHICS_COLOR_FUCHSIA   0x00FF00FF
#define GRAPHICS_COLOR_GAINSBORO   0x00DCDCDC
#define GRAPHICS_COLOR_GHOST_WHITE   0x00F8F8FF
#define GRAPHICS_COLOR_GOLD   0x00FFD700
#define GRAPHICS_COLOR_GOLDENRON   0x00DAA520
#define GRAPHICS_COLOR_GRAY   0x00808080
#define GRAPHICS_COLOR_GREEN   0x00008000
#define GRAPHICS_COLOR_GREEN_YELLOW   0x00ADFF2F
#define GRAPHICS_COLOR_HONEYDEW   0x00F0FFF0
#define GRAPHICS_COLOR_HOT_PINK   0x00FF69B4
#define GRAPHICS_COLOR_INDIAN_RED   0x00CD5C5C
#define GRAPHICS_COLOR_INDIGO   0x004B0082
#define GRAPHICS_COLOR_IVORY   0x00FFFFF0
#define GRAPHICS_COLOR_KHAKI   0x00F0E68C
#define GRAPHICS_COLOR_LAVENDER   0x00E6E6FA
#define GRAPHICS_COLOR_LAVENDER_BLUSH   0x00FFF0F5
#define GRAPHICS_COLOR_LAWN_GREEN   0x007CFC00
#define GRAPHICS_COLOR_LEMON_CHIFFON   0x00FFFACD
#define GRAPHICS_COLOR_LIGHT_BLUE   0x00ADD8E6
#define GRAPHICS_COLOR_LIGHT_CORAL   0x00F08080
#define GRAPHICS_COLOR_LIGHT_CYAN   0x00E0FFFF
#define GRAPHICS_COLOR_LIGHT_GOLDENRON_YELLOW   0x00FAFAD2
#define GRAPHICS_COLOR_LIGHT_GREEN   0x0090EE90
#define GRAPHICS_COLOR_LIGHT_GRAY   0x00D3D3D3
#define GRAPHICS_COLOR_LIGHT_PINK   0x00FFB6C1
#define GRAPHICS_COLOR_LIGHT_SALMON   0x00FFA07A
#define GRAPHICS_COLOR_LIGHT_SEA_GREEN   0x0020B2AA
#define GRAPHICS_COLOR_LIGHT_SKY_BLUE   0x0087CEFA
#define GRAPHICS_COLOR_LIGHT_SLATE_GRAY   0x00778899
#define GRAPHICS_COLOR_LIGHT_STEEL_BLUE   0x00B0C4DE
#define GRAPHICS_COLOR_LIGHT_YELLOW   0x00FFFFE0
#define GRAPHICS_COLOR_LIME   0x0000FF00
#define GRAPHICS_COLOR_LIME_GREEN   0x0032CD32
#define GRAPHICS_COLOR_LINEN   0x00FAF0E6
#define GRAPHICS_COLOR_MAGENTA   0x00FF00FF
#define GRAPHICS_COLOR_MAROON   0x00800000
#define GRAPHICS_COLOR_MEDIUM_AQUAMARINE   0x0066CDAA
#define GRAPHICS_COLOR_MEDIUM_BLUE   0x000000CD
#define GRAPHICS_COLOR_MEDIUM_ORCHID   0x00BA55D3
#define GRAPHICS_COLOR_MEDIUM_PURPLE   0x009370DB
#define GRAPHICS_COLOR_MEDIUM_SEA_GREEN   0x003CB371
#define GRAPHICS_COLOR_MEDIUM_SLATE_BLUE   0x007B68EE
#define GRAPHICS_COLOR_MEDIUM_SPRING_GREEN   0x0000FA9A
#define GRAPHICS_COLOR_MEDIUM_TURQUOISE   0x0048D1CC
#define GRAPHICS_COLOR_MEDIUM_VIOLET_RED   0x00C71585
#define GRAPHICS_COLOR_MIGNIGHT_BLUE   0x00191970
#define GRAPHICS_COLOR_MINT_CREAM   0x00F5FFFA
#define GRAPHICS_COLOR_MISTY_ROSE   0x00FFE4E1
#define GRAPHICS_COLOR_MOCCASIN   0x00FFE4B5
#define GRAPHICS_COLOR_NAVAJO_WHITE   0x00FFDEAD
#define GRAPHICS_COLOR_NAVY   0x00000080
#define GRAPHICS_COLOR_OLD_LACE   0x00FDF5E6
#define GRAPHICS_COLOR_OLIVE   0x00808000
#define GRAPHICS_COLOR_OLIVE_DRAB   0x006B8E23
#define GRAPHICS_COLOR_ORANGE   0x00FFA500
#define GRAPHICS_COLOR_ORANGE_RED   0x00FF4500
#define GRAPHICS_COLOR_ORCHID   0x00DA70D6
#define GRAPHICS_COLOR_PALE_GOLDENRON   0x00EEE8AA
#define GRAPHICS_COLOR_PALE_GREEN   0x0098FB98
#define GRAPHICS_COLOR_PALE_TURQUOISE   0x00AFEEEE
#define GRAPHICS_COLOR_PALE_VIOLET_RED   0x00DB7093
#define GRAPHICS_COLOR_PAPAYA_WHIP   0x00FFEFD5
#define GRAPHICS_COLOR_PEACH_PUFF   0x00FFDAB9
#define GRAPHICS_COLOR_PERU   0x00CD853F
#define GRAPHICS_COLOR_PINK   0x00FFC0CB
#define GRAPHICS_COLOR_PLUM   0x00DDA0DD
#define GRAPHICS_COLOR_POWDER_BLUE   0x00B0E0E6
#define GRAPHICS_COLOR_PURPLE   0x00800080
#define GRAPHICS_COLOR_RED   0x00FF0000
#define GRAPHICS_COLOR_ROSY_BROWN   0x00BC8F8F
#define GRAPHICS_COLOR_ROYAL_BLUE   0x004169E1
#define GRAPHICS_COLOR_SADDLE_BROWN   0x008B4513
#define GRAPHICS_COLOR_SALMON   0x00FA8072
#define GRAPHICS_COLOR_SANDY_BROWN   0x00F4A460
#define GRAPHICS_COLOR_SEA_GREEN   0x002E8B57
#define GRAPHICS_COLOR_SEASHELL   0x00FFF5EE
#define GRAPHICS_COLOR_SIENNA   0x00A0522D
#define GRAPHICS_COLOR_SILVER   0x00C0C0C0
#define GRAPHICS_COLOR_SKY_BLUE   0x0087CEEB
#define GRAPHICS_COLOR_SLATE_BLUE   0x006A5ACD
#define GRAPHICS_COLOR_SLATE_GRAY   0x00708090
#define GRAPHICS_COLOR_SNOW   0x00FFFAFA
#define GRAPHICS_COLOR_SPRING_GREEN   0x0000FF7F
#define GRAPHICS_COLOR_STEEL_BLUE   0x004682B4
#define GRAPHICS_COLOR_TAN   0x00D2B48C
#define GRAPHICS_COLOR_TEAL   0x00008080
#define GRAPHICS_COLOR_THISTLE   0x00D8BFD8
#define GRAPHICS_COLOR_TOMATO   0x00FF6347
#define GRAPHICS_COLOR_TURQUOISE   0x0040E0D0
#define GRAPHICS_COLOR_VIOLET   0x00EE82EE
#define GRAPHICS_COLOR_WHEAT   0x00F5DEB3
#define GRAPHICS_COLOR_WHITE   0x00FFFFFF
#define GRAPHICS_COLOR_WHITE_SMOKE   0x00F5F5F5
#define GRAPHICS_COLOR_YELLOW   0x00FFFF00
#define GRAPHICS_COLOR_YELLOW_GREEN   0x009ACD32
#define ClrRedMask   0x00FF0000
#define ClrRedShift   16
#define ClrGreenMask   0x0000FF00
#define ClrGreenShift   8
#define ClrBlueMask   0x000000FF
#define ClrBlueShift   0
#define GrLangZhPRC   0x0804
#define GrLangZhTW   0x0404
#define GrLangEnUS   0x0409
#define GrLangEnUK   0x0809
#define GrLangEnAUS   0x0C09
#define GrLangEnCA   0x1009
#define GrLangEnNZ   0x1409
#define GrLangFr   0x040C
#define GrLangDe   0x0407
#define GrLangHi   0x0439
#define GrLangIt   0x0410
#define GrLangJp   0x0411
#define GrLangKo   0x0412
#define GrLangEsMX   0x080A
#define GrLangEsSP   0x0C0A
#define GrLangSwKE   0x0441
#define GrLangUrIN   0x0820
#define GrLangUrPK   0x0420

Typedef Documentation

This structure defines the characteristics of a Bitmap Image.

This structure defines the extents of a rectangle. All points greater than or equal to the minimum and less than or equal to the maximum are part of the rectangle.

This structure defines the characteristics of a display driver.

typedef struct Graphics_Font Graphics_Font

This structure describes a font used for drawing text onto the screen.

This is a newer version of the structure which describes a font used for drawing text onto the screen. This variant allows a font to contain an arbitrary, contiguous block of codepoints from the 256 basic characters in an ISO8859-n font and allows support for accented characters in Western European languages and any left-to-right typeface supported by an ISO8859 variant. Fonts encoded in this format may be used interchangeably with the original fonts merely by casting the structure pointer when calling any function or macro which expects a font pointer as a parameter.

This structure defines a drawing context to be used to draw onto the screen. Multiple drawing contexts may exist at any time.

Function Documentation

void Graphics_drawCircle ( const Graphics_Context context,
int32_t  x,
int32_t  y,
int32_t  radius 
)

Draws a circle.

Parameters
contextis a pointer to the drawing context to use.
xis the X coordinate of the center of the circle.
yis the Y coordinate of the center of the circle.
radiusis the radius of the circle.

This function draws a circle, utilizing the Bresenham circle drawing algorithm. The extent of the circle is from x - radius to x + radius and y - radius to y + radius, inclusive.

Returns
None.

References Graphics_Context::clipRegion, Graphics_drawPixel(), Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

Referenced by Graphics_drawRadioButton().

void Graphics_fillCircle ( const Graphics_Context context,
int32_t  x,
int32_t  y,
int32_t  radius 
)

Draws a filled circle.

Parameters
contextis a pointer to the drawing context to use.
xis the X coordinate of the center of the circle.
yis the Y coordinate of the center of the circle.
radiusis the radius of the circle.

This function draws a filled circle, utilizing the Bresenham circle drawing algorithm. The extent of the circle is from x - radius to x + radius and y - radius to y + radius, inclusive.

Returns
None.

References Graphics_Context::clipRegion, Graphics_drawLineH(), Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

Referenced by Graphics_drawRadioButton(), Graphics_drawReleasedRadioButton(), and Graphics_drawSelectedRadioButton().

void Graphics_setClipRegion ( Graphics_Context context,
Graphics_Rectangle rect 
)

Sets the extents of the clipping region.

Parameters
contextis a pointer to the drawing context to use.
rectis a pointer to the structure containing the extents of the clipping region.

This function sets the extents of the clipping region. The clipping region is not allowed to exceed the extents of the screen, but may be a portion of the screen.

The supplied coordinate are inclusive; xMin of 1 and xMax of 1 will define a clipping region that will display only the pixels in the X = 1 column. A consequence of this is that the clipping region must contain at least one row and one column.

Returns
None.

References Graphics_Context::clipRegion, Graphics_Context::display, Graphics_getHeightOfDisplay(), Graphics_getWidthOfDisplay(), Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

void Graphics_initContext ( Graphics_Context context,
const Graphics_Display display 
)

Initializes a drawing context.

Parameters
contextis a pointer to the drawing context to initialize.
displayis a pointer to the Graphics_Display Info structure that describes the display driver to use.

This function initializes a drawing context, preparing it for use. The provided display driver will be used for all subsequent graphics operations, and the default clipping region will be set to the extent of the screen.

Returns
None.

References Graphics_Context::background, Graphics_Context::clipRegion, Graphics_Context::display, Graphics_Context::font, Graphics_Context::foreground, Graphics_Display::heigth, Graphics_Context::size, Graphics_Display::width, Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

void Graphics_drawImage ( const Graphics_Context context,
const Graphics_Image bitmap,
int16_t  x,
int16_t  y 
)

Draws a bitmap image.

Parameters
contextis a pointer to the drawing context to use.
bitmapis a pointer to the image to draw.
xis the X coordinate of the upper left corner of the image.
yis the Y coordinate of the upper left corner of the image.

This function draws a bitmap image. The image may be 1 bit per pixel, 4 bits per pixel or 8 bits per pixel (using a palette supplied in the image data). It can be uncompressed data, or it can be compressed using several different compression types. Compression options are 4-bit run length encoding, 8-bit run length encoding, and a custom run length encoding variation written for complex 8-bit per pixel images.

Returns
None.

References Graphics_Image::bPP, Graphics_Context::clipRegion, Graphics_Context::display, Graphics_drawMultiplePixelsOnDisplay(), Graphics_drawPixelOnDisplay(), Graphics_Image::pPixel, Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Image::xSize, Graphics_Rectangle::yMax, Graphics_Rectangle::yMin, and Graphics_Image::ySize.

Referenced by Graphics_drawImageButton(), Graphics_drawReleasedImageButton(), and Graphics_drawSelectedImageButton().

void Graphics_drawLine ( const Graphics_Context context,
int32_t  x1,
int32_t  y1,
int32_t  x2,
int32_t  y2 
)

Draws a line.

Parameters
contextis a pointer to the drawing context to use.
x1is the X coordinate of the start of the line.
y1is the Y coordinate of the start of the line.
x2is the X coordinate of the end of the line.
y2is the Y coordinate of the end of the line.

This function draws a line, utilizing Graphics_drawLineH() and Graphics_drawLineV() to draw the line as efficiently as possible. The line is clipped to the clippping rectangle using the Cohen-Sutherland clipping algorithm, and then scan converted using Bresenham's line drawing algorithm.

Returns
None.

References Graphics_Context::display, Graphics_Context::foreground, Graphics_drawLineH(), Graphics_drawLineV(), and Graphics_drawPixelOnDisplay().

Referenced by Graphics_drawCheckBox(), and Graphics_drawSelectedCheckBox().

void Graphics_drawLineH ( const Graphics_Context context,
int32_t  x1,
int32_t  x2,
int32_t  y 
)

Draws a horizontal line.

Parameters
contextis a pointer to the drawing context to use.
x1is the X coordinate of one end of the line.
x2is the X coordinate of the other end of the line.
yis the Y coordinate of the line.

This function draws a horizontal line, taking advantage of the fact that the line is horizontal to draw it more efficiently. The clipping of the horizontal line to the clipping rectangle is performed within this routine; the display driver's horizontal line routine is used to perform the actual line drawing.

Returns
None.

References Graphics_Context::clipRegion, Graphics_Context::display, Graphics_Context::foreground, Graphics_drawHorizontalLineOnDisplay(), Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, and Graphics_Rectangle::yMax.

Referenced by Graphics_drawLine(), Graphics_drawRectangle(), Graphics_drawString(), and Graphics_fillCircle().

void Graphics_drawLineV ( const Graphics_Context context,
int32_t  x,
int32_t  y1,
int32_t  y2 
)

Draws a vertical line.

Parameters
contextis a pointer to the drawing context to use.
xis the X coordinate of the line.
y1is the Y coordinate of one end of the line.
y2is the Y coordinate of the other end of the line.

This function draws a vertical line, taking advantage of the fact that the line is vertical to draw it more efficiently. The clipping of the vertical line to the clipping rectangle is performed within this routine; the display driver's vertical line routine is used to perform the actual line drawing.

Returns
None.

References Graphics_Context::clipRegion, Graphics_Context::display, Graphics_Context::foreground, Graphics_drawVerticalLineOnDisplay(), Graphics_Rectangle::xMax, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

Referenced by Graphics_drawLine(), and Graphics_drawRectangle().

void Graphics_drawRectangle ( const Graphics_Context context,
const Graphics_Rectangle rect 
)

Draws a rectangle.

Parameters
contextis a pointer to the drawing context to use.
rectis a pointer to the structure containing the extents of the rectangle.

This function draws a rectangle. The rectangle will extend from xMin to xMax and yMin to yMax, inclusive.

Returns
None.

References Graphics_drawLineH(), Graphics_drawLineV(), Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

Referenced by Graphics_drawCheckBox(), and Graphics_drawReleasedCheckBox().

void Graphics_fillRectangle ( const Graphics_Context context,
const Graphics_Rectangle rect 
)

Draws a filled rectangle.

Parameters
contextis a pointer to the drawing context to use.
rectis a pointer to the structure containing the extents of the rectangle.

This function draws a filled rectangle. The rectangle will extend from xMin to xMax and yMin to yMax, inclusive. The clipping of the rectangle to the clipping rectangle is performed within this routine; the display driver's rectangle fill routine is used to perform the actual rectangle fill.

Returns
None.

References Graphics_Context::clipRegion, Graphics_Context::display, Graphics_Context::foreground, Graphics_fillRectangleOnDisplay(), Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

Referenced by Graphics_drawCheckBox(), Graphics_drawImageButton(), Graphics_drawReleasedCheckBox(), Graphics_drawReleasedImageButton(), and Graphics_drawSelectedImageButton().

void Graphics_drawString ( const Graphics_Context context,
int8_t *  string,
int32_t  length,
int32_t  x,
int32_t  y,
bool  opaque 
)

Draws a string.

Parameters
contextis a pointer to the drawing context to use.
stringis a pointer to the string to be drawn.
lengthis the number of characters from the string that should be drawn on the screen.
xis the X coordinate of the upper left corner of the string position on the screen.
yis the Y coordinate of the upper left corner of the string position on the screen.
opaqueis true if the background of each character should be drawn and false if it should not (leaving the background as is).

This function draws a string of test on the screen. The length parameter allows a portion of the string to be examined without having to insert a NULL character at the stopping point (which would not be possible if the string was located in flash); specifying a length of -1 will cause the entire string to be rendered (subject to clipping).

Returns
None.

References Graphics_Context::background, Graphics_Context::clipRegion, Graphics_Font::data, Graphics_FontEx::data, Graphics_Context::display, Graphics_FontEx::first, Graphics_Context::font, Graphics_Context::foreground, Graphics_Font::format, GRAPHICS_ABSENT_CHAR_REPLACEMENT, Graphics_drawLineH(), Graphics_drawPixelOnDisplay(), GRAPHICS_FONT_EX_MARKER, GRAPHICS_FONT_FMT_UNCOMPRESSED, Graphics_FontEx::last, Graphics_Font::offset, Graphics_FontEx::offset, Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

Referenced by Graphics_drawCheckBox(), Graphics_drawRadioButton(), and Graphics_drawStringCentered().

int32_t Graphics_getStringWidth ( const Graphics_Context context,
const int8_t *  string,
int32_t  length 
)

Determines the width of a string.

Parameters
contextis a pointer to the drawing context to use.
stringis the string in question.
lengthis the length of the string.

This function determines the width of a string (or portion of the string) when drawn with a particular font. The length parameter allows a portion of the string to be examined without having to insert a NULL character at the stopping point (would not be possible if the string was located in flash); specifying a length of -1 will cause the width of the entire string to be computed.

Returns
Returns the width of the string in pixels.

References Graphics_Font::data, Graphics_FontEx::data, Graphics_FontEx::first, Graphics_Context::font, Graphics_Font::format, GRAPHICS_ABSENT_CHAR_REPLACEMENT, GRAPHICS_FONT_EX_MARKER, Graphics_FontEx::last, Graphics_Font::offset, and Graphics_FontEx::offset.

Referenced by Graphics_drawStringCentered().

int32_t Graphics_isOverlappingRectangle ( Graphics_Rectangle psRect1,
Graphics_Rectangle psRect2 
)
int32_t Graphics_getRectangleIntersection ( Graphics_Rectangle rect1,
Graphics_Rectangle rect2,
Graphics_Rectangle intersect 
)

Determines the intersection of two rectangles.

Parameters
rect1is a pointer to the first rectangle.
rect2is a pointer to the second rectangle.
intersectis a pointer to a rectangle which will be written with the intersection of rect1 and rect2.

This function determines if two rectangles overlap and, if they do, calculates the rectangle representing their intersection. If the rectangles do not overlap, 0 is returned and intersect is not written.

Returns
Returns 1 if there is an overlap or 0 if not.

References Graphics_isRectangleOverlap(), max, min, Graphics_Rectangle::xMax, Graphics_Rectangle::xMin, Graphics_Rectangle::yMax, and Graphics_Rectangle::yMin.

void Graphics_setBackgroundColor ( Graphics_Context context,
int32_t  value 
)

Sets the background color to be used.

Parameters
contextis a pointer to the drawing context to modify.
valueis the 24-bit RGB color to be used.

This function sets the background color to be used for drawing operations in the specified drawing context.

Returns
None.

References Graphics_Context::background, Graphics_Context::display, and Graphics_translateColorOnDisplay().

uint16_t Graphics_getDisplayWidth ( Graphics_Context context)

Gets the width of the display being used by this drawing context.

Parameters
contextis a pointer to the drawing context to query.

This function returns the width of the display that is being used by this drawing context.

Returns
Returns the width of the display in pixels.

References Graphics_Context::display, and Graphics_Display::width.

uint16_t Graphics_getDisplayHeight ( Graphics_Context context)

Gets the height of the display being used by this drawing context.

Parameters
contextis a pointer to the drawing context to query.

This function returns the height of the display that is being used by this drawing context.

Returns
Returns the height of the display in pixels.

References Graphics_Context::display, and Graphics_Display::heigth.

void Graphics_setFont ( Graphics_Context context,
const Graphics_Font font 
)

Sets the font to be used.

Parameters
contextis a pointer to the drawing context to modify.
fontis a pointer to the font to be used.

This function sets the font to be used for string drawing operations in the specified drawing context. If a tFontEx type font is to be used, cast its pointer to a font pointer before passing it as the font parameter.

Returns
None.

References Graphics_Context::font.

Referenced by Graphics_drawCheckBox(), Graphics_drawImageButton(), Graphics_drawRadioButton(), Graphics_drawReleasedImageButton(), Graphics_drawSelectedImageButton(), and Graphics_drawSelectedRadioButton().

uint8_t Graphics_getFontBaseline ( const Graphics_Font font)

Gets the baseline of a font.

Parameters
fontis a pointer to the font to query.

This function determines the baseline position of a font. The baseline is the offset between the top of the font and the bottom of the capital letters. The only font data that exists below the baseline are the descenders on some lower-case letters (such as ``y'').

Returns
Returns the baseline of the font, in pixels.

References Graphics_Font::baseline.

void Graphics_setForegroundColor ( Graphics_Context context,
int32_t  value 
)

Sets the foreground color to be used.

Parameters
contextis a pointer to the drawing context to modify.
valueis the 24-bit RGB color to be used.

This function sets the color to be used for drawing operations in the specified drawing context.

Returns
None.

References Graphics_Context::display, Graphics_Context::foreground, and Graphics_translateColorOnDisplay().

Referenced by Graphics_drawCheckBox(), Graphics_drawImageButton(), Graphics_drawRadioButton(), Graphics_drawReleasedCheckBox(), Graphics_drawReleasedImageButton(), Graphics_drawReleasedRadioButton(), Graphics_drawSelectedCheckBox(), Graphics_drawSelectedImageButton(), and Graphics_drawSelectedRadioButton().

void Graphics_setForegroundColorTranslated ( Graphics_Context context,
int32_t  value 
)

Sets the foreground color to be used.

Parameters
contextis a pointer to the drawing context to modify.
valueis the display driver-specific color to be used.

This function sets the foreground color to be used for drawing operations in the specified drawing context, using a color that has been previously translated to a driver-specific color (for example, via Graphics_translateColorDisplay()).

Returns
None.

References Graphics_Context::foreground.

uint8_t Graphics_getFontHeight ( const Graphics_Font font)

Gets the height of a font.

Parameters
fontis a pointer to the font to query.

This function determines the height of a font. The height is the offset between the top of the font and the bottom of the font, including any ascenders and descenders.

Returns
Returns the height of the font, in pixels.

References Graphics_Font::height.

uint8_t Graphics_getFontMaxWidth ( const Graphics_Font font)

Gets the maximum width of a font.

Parameters
fontis a pointer to the font to query.

This function determines the maximum width of a font. The maximum width is the width of the widest individual character in the font.

Returns
Returns the maximum width of the font, in pixels.

References Graphics_Font::maxWidth.

uint16_t Graphics_getImageColors ( const Graphics_Image image)

Gets the number of colors in an image.

Parameters
imageis a tImage struct

This function determines the number of colors in the palette of an image. This is only valid for 4bpp and 8bpp images; 1bpp images do not contain a palette.

Returns
Returns the number of colors in the image.

References Graphics_Image::numColors.

uint16_t Graphics_getImageHeight ( const Graphics_Image image)

Gets the height of an image.

Parameters
imageis a tImage struct

This function determines the height of an image in pixels.

Returns
Returns the height of the image in pixels.

References Graphics_Image::ySize.

uint16_t Graphics_getImageWidth ( const Graphics_Image image)

Gets the width of an image.

Parameters
imageis a tImage struct

This function determines the width of an image in pixels.

Returns
Returns the width of the image in pixels.

References Graphics_Image::xSize.

uint32_t Graphics_getOffscreen1BppImageSize ( uint16_t  width,
uint16_t  height 
)

Determines the size of the buffer for a 1 BPP off-screen image.

Parameters
widthis the width of the image in pixels.
heightis the height of the image in pixels.

This function determines the size of the memory buffer required to hold a 1 BPP off-screen image of the specified geometry.

Returns
Returns the number of bytes required by the image.
uint32_t Graphics_getOffscreen4BppImageSize ( uint16_t  width,
uint16_t  height 
)

Determines the size of the buffer for a 4 BPP off-screen image.

Parameters
widthis the width of the image in pixels.
heightis the height of the image in pixels.

This function determines the size of the memory buffer required to hold a 4 BPP off-screen image of the specified geometry.

Returns
Returns the number of bytes required by the image.
uint32_t Graphics_getOffScreen8BPPSize ( uint16_t  width,
uint16_t  height 
)

Determines the size of the buffer for an 8 BPP off-screen image.

Parameters
widthis the width of the image in pixels.
heightis the height of the image in pixels.

This function determines the size of the memory buffer required to hold an 8 BPP off-screen image of the specified geometry.

Returns
Returns the number of bytes required by the image.
void Graphics_drawStringCentered ( const Graphics_Context context,
int8_t *  string,
int32_t  length,
int32_t  x,
int32_t  y,
bool  opaque 
)

Draws a centered string.

Parameters
contextis a pointer to the drawing context to use.
stringis a pointer to the string to be drawn.
lengthis the number of characters from the string that should be drawn on the screen.
xis the X coordinate of the center of the string position on the screen.
yis the Y coordinate of the center of the string position on the screen.
opaqueis true if the background of each character should be drawn and false if it should not (leaving the background as is).

This function draws a string of test on the screen centered upon the provided position. The lLength parameter allows a portion of the string to be examined without having to insert a NULL character at the stopping point (which would not be possible if the string was located in flash); specifying a length of -1 will cause the entire string to be rendered (subject to clipping).

Returns
None.

References Graphics_Font::baseline, Graphics_Context::font, Graphics_drawString(), and Graphics_getStringWidth().

uint8_t Graphics_getStringHeight ( const Graphics_Context context)

Gets the height of a string.

Parameters
contextis a pointer to the drawing context to query.

This function determines the height of a string. The height is the offset between the top of the string and the bottom of the string, including any ascenders and descenders. Note that this will not account for the case where the string in question does not have any characters that use descenders but the font in the drawing context does contain characters with descenders.

Returns
Returns the height of the string, in pixels.

References Graphics_Context::font, and Graphics_Font::height.

uint8_t Graphics_getStringMaxWidth ( const Graphics_Context context)

Gets the maximum width of a character in a string.

Parameters
contextis a pointer to the drawing context to query.

This function determines the maximum width of a character in a string. The maximum width is the width of the widest individual character in the font used to render the string, which may be wider than the widest character that is used to render a particular string.

Returns
Returns the maximum width of a character in a string, in pixels.

References Graphics_Context::font, and Graphics_Font::maxWidth.

uint8_t Graphics_getStringBaseline ( const Graphics_Context context)

Gets the baseline of a string.

Parameters
contextis a pointer to the drawing context to query.

This function determines the baseline position of a string. The baseline is the offset between the top of the string and the bottom of the capital letters. The only string data that exists below the baseline are the descenders on some lower-case letters (such as ``y'').

Returns
Returns the baseline of the string, in pixels.

References Graphics_Font::baseline, and Graphics_Context::font.

uint32_t Graphics_translateColorOnDisplay ( const Graphics_Display display,
uint32_t  value 
)

Translates a 24-bit RGB color to a display driver-specific color.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.
valueis the 24-bit RGB color. The least-significant byte is the blue channel, the next byte is the green channel, and the third byte is the red channel.

This function translates a 24-bit RGB color into a value that can be written into the display's frame buffer in order to reproduce that color, or the closest possible approximation of that color.

Returns
Returns the display-driver specific color.

References Graphics_Display::callColorTranslate.

Referenced by Graphics_setBackgroundColor(), and Graphics_setForegroundColor().

void Graphics_drawHorizontalLineOnDisplay ( const Graphics_Display display,
uint16_t  x1,
uint16_t  x2,
uint16_t  y,
uint32_t  value 
)

Draws a horizontal line on a display.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.
x1is the starting X coordinate of the line.
x2is the ending X coordinate of the line.
yis the Y coordinate of the line.
valueis the color to draw the line.

This function draws a horizontal line on a display. This assumes that clipping has already been performed, and that both end points of the line are within the extents of the display.

Returns
None.

References Graphics_Display::callLineDrawH, and Graphics_Display::displayData.

Referenced by Graphics_drawLineH().

void Graphics_drawVerticalLineOnDisplay ( const Graphics_Display display,
uint16_t  x,
uint16_t  y1,
uint16_t  y2,
uint16_t  value 
)

Draws a vertical line on a display.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.
xis the X coordinate of the line.
y1is the starting Y coordinate of the line.
y2is the ending Y coordinate of the line.
valueis the color to draw the line.

This function draws a vertical line on a display. This assumes that clipping has already been performed, and that both end points of the line are within the extents of the display.

Returns
None.

References Graphics_Display::callLineDrawV, and Graphics_Display::displayData.

Referenced by Graphics_drawLineV().

void Graphics_fillRectangleOnDisplay ( const Graphics_Display display,
const Graphics_Rectangle rect,
uint16_t  value 
)

Fills a rectangle on a display.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.
rectis a pointer to the structure describing the rectangle to fill.
valueis the color to fill the rectangle.

This function fills a rectangle on the display. This assumes that clipping has already been performed, and that all sides of the rectangle are within the extents of the display.

Returns
None.

References Graphics_Display::callRectFill, and Graphics_Display::displayData.

Referenced by Graphics_fillRectangle().

void Graphics_flushOnDisplay ( const Graphics_Display display)

Flushes cached drawing operations.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.

This function flushes any cached drawing operations on a display.

Returns
None.

References Graphics_Display::callFlush, and Graphics_Display::displayData.

Referenced by Graphics_flushBuffer().

void Graphics_drawPixel ( const Graphics_Context context,
uint16_t  x,
uint16_t  y 
)

Draws a pixel.

Parameters
contextis a pointer to the drawing context to use.
xis the X coordinate of the pixel.
yis the Y coordinate of the pixel.

This function draws a pixel if it resides within the clipping region.

Returns
None.

References Graphics_Context::clipRegion, Graphics_Context::display, Graphics_Context::foreground, Graphics_drawPixelOnDisplay(), Graphics_Rectangle::xMin, and Graphics_Rectangle::yMin.

Referenced by Graphics_drawCircle().

void Graphics_clearDisplay ( const Graphics_Context context)

Forces a clear screen. Contents of Display buffer unmodified

Parameters
contextis a pointer to the drawing context to use.

This function forces a clear screen.

Returns
None.

References Graphics_Context::background, Graphics_Context::display, and Graphics_clearDisplayOnDisplay().

uint16_t Graphics_getHeightOfDisplay ( const Graphics_Display display)

Gets the height of the display.

Parameters
displayis a pointer to the display driver structure for the display to query.

This function determines the height of the display.

Returns
Returns the height of the display in pixels.

References Graphics_Display::heigth.

Referenced by Graphics_setClipRegion().

void Graphics_flushBuffer ( const Graphics_Context context)

Flushes any cached drawing operations.

Parameters
contextis a pointer to the drawing context to use.

This function flushes any cached drawing operations. For display drivers that draw into a local frame buffer before writing to the actual display, calling this function will cause the display to be updated to match the contents of the local frame buffer.

Returns
None.

References Graphics_Context::display, and Graphics_flushOnDisplay().

uint16_t Graphics_getWidthOfDisplay ( const Graphics_Display display)

Gets the width of the display.

Parameters
displayis a pointer to the display driver structure for the display to query.

This function determines the width of the display.

Returns
Returns the width of the display in pixels.

References Graphics_Display::width.

Referenced by Graphics_setClipRegion().

bool Graphics_isPointWithinRectangle ( const Graphics_Rectangle rect,
uint16_t  x,
uint16_t  y 
)

Determines if a point lies within a given rectangle.

Parameters
rectis a pointer to the rectangle which the point is to be checked against.
xis the X coordinate of the point to be checked.
yis the Y coordinate of the point to be checked.

This function determines whether point (x, y) lies within the rectangle described by rect.

Returns
Returns 1 if the point is within the rectangle or 0 otherwise.
void Graphics_drawPixelOnDisplay ( const Graphics_Display display,
uint16_t  x,
uint16_t  y,
uint16_t  value 
)

Draws a pixel on a display.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.
xis the X coordinate of the pixel.
yis the Y coordinate of the pixel.
valueis the color to draw the pixel.

This function draws a pixel on a display. This assumes that clipping has already been performed.

Returns
None.

References Graphics_Display::callPixelDraw, and Graphics_Display::displayData.

Referenced by Graphics_drawImage(), Graphics_drawLine(), Graphics_drawPixel(), and Graphics_drawString().

void Graphics_clearDisplayOnDisplay ( const Graphics_Display display,
uint16_t  value 
)

Forces a clear Display.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.
valueis the current background color to fill the screen with.

This function clears the Display

Returns
None.

References Graphics_Display::callClearDisplay, and Graphics_Display::displayData.

Referenced by Graphics_clearDisplay().

void Graphics_drawMultiplePixelsOnDisplay ( const Graphics_Display display,
uint16_t  x,
uint16_t  y,
uint16_t  x0,
uint16_t  count,
uint16_t  bPP,
const uint8_t *  data,
const uint32_t *  palette 
)

Draws a horizontal sequence of pixels on a display.

Parameters
displayis the pointer to the display driver structure for the display to operate upon.
xis the X coordinate of the first pixel.
yis the Y coordinate of the first pixel.
x0is sub-pixel offset within the pixel data, which is valid for 1 or 4 bit per pixel formats.
countis the number of pixels to draw.
bPPis the number of bits per pixel; must be 1, 4, or 8.
datais a pointer to the pixel data. For 1 and 4 bit per pixel formats, the most significant bit(s) represent the left-most pixel.
paletteis a pointer to the palette used to draw the pixels.

This function draws a horizontal sequence of pixels on a display, using the supplied palette. For 1 bit per pixel format, the palette contains pre-translated colors; for 4 and 8 bit per pixel formats, the palette contains 24-bit RGB values that must be translated before being written to the display.

Returns
None.

References Graphics_Display::callPixelDrawMultiple, and Graphics_Display::displayData.

Referenced by Graphics_drawImage().

void Graphics_initOffscreen1BppImage ( Graphics_Display display,
uint8_t *  image,
int32_t  width,
int32_t  height 
)
void Graphics_initOffscreen4BppImage ( Graphics_Display display,
uint8_t *  image,
int32_t  width,
int32_t  height 
)
void Graphics_setOffscreen4BppPalette ( Graphics_Display display,
uint32_t *  ppalette,
uint32_t  offset,
uint32_t  count 
)
void Graphics_initOffscreen8BppImage ( Graphics_Display display,
uint8_t *  image,
int32_t  width,
int32_t  height 
)
void Graphics_setOffscreen8BppPalette ( Graphics_Display display,
uint32_t *  ppalette,
uint32_t  offset,
uint32_t  count 
)

Variable Documentation

const Graphics_Font g_sFontCm12
const Graphics_Font g_sFontCm12b
const Graphics_Font g_sFontCm12i
const Graphics_Font g_sFontCm14
const Graphics_Font g_sFontCm14b
const Graphics_Font g_sFontCm14i
const Graphics_Font g_sFontCm16
const Graphics_Font g_sFontCm16b
const Graphics_Font g_sFontCm16i
const Graphics_Font g_sFontCm18
const Graphics_Font g_sFontCm18b
const Graphics_Font g_sFontCm18i
const Graphics_Font g_sFontCm20
const Graphics_Font g_sFontCm20b
const Graphics_Font g_sFontCm20i
const Graphics_Font g_sFontCm22
const Graphics_Font g_sFontCm22b
const Graphics_Font g_sFontCm22i
const Graphics_Font g_sFontCm24
const Graphics_Font g_sFontCm24b
const Graphics_Font g_sFontCm24i
const Graphics_Font g_sFontCm26
const Graphics_Font g_sFontCm26b
const Graphics_Font g_sFontCm26i
const Graphics_Font g_sFontCm28
const Graphics_Font g_sFontCm28b
const Graphics_Font g_sFontCm28i
const Graphics_Font g_sFontCm30
const Graphics_Font g_sFontCm30b
const Graphics_Font g_sFontCm30i
const Graphics_Font g_sFontCm32
const Graphics_Font g_sFontCm32b
const Graphics_Font g_sFontCm32i
const Graphics_Font g_sFontCm34
const Graphics_Font g_sFontCm34b
const Graphics_Font g_sFontCm34i
const Graphics_Font g_sFontCm36
const Graphics_Font g_sFontCm36b
const Graphics_Font g_sFontCm36i
const Graphics_Font g_sFontCm38
const Graphics_Font g_sFontCm38b
const Graphics_Font g_sFontCm38i
const Graphics_Font g_sFontCm40
const Graphics_Font g_sFontCm40b
const Graphics_Font g_sFontCm40i
const Graphics_Font g_sFontCm42
const Graphics_Font g_sFontCm42b
const Graphics_Font g_sFontCm42i
const Graphics_Font g_sFontCm44
const Graphics_Font g_sFontCm44b
const Graphics_Font g_sFontCm44i
const Graphics_Font g_sFontCm46
const Graphics_Font g_sFontCm46b
const Graphics_Font g_sFontCm46i
const Graphics_Font g_sFontCm48
const Graphics_Font g_sFontCm48b
const Graphics_Font g_sFontCm48i
const Graphics_Font g_sFontCmsc12
const Graphics_Font g_sFontCmsc14
const Graphics_Font g_sFontCmsc16
const Graphics_Font g_sFontCmsc18
const Graphics_Font g_sFontCmsc20
const Graphics_Font g_sFontCmsc22
const Graphics_Font g_sFontCmsc24
const Graphics_Font g_sFontCmsc26
const Graphics_Font g_sFontCmsc28
const Graphics_Font g_sFontCmsc30
const Graphics_Font g_sFontCmsc32
const Graphics_Font g_sFontCmsc34
const Graphics_Font g_sFontCmsc36
const Graphics_Font g_sFontCmsc38
const Graphics_Font g_sFontCmsc40
const Graphics_Font g_sFontCmsc42
const Graphics_Font g_sFontCmsc44
const Graphics_Font g_sFontCmsc46
const Graphics_Font g_sFontCmsc48
const Graphics_Font g_sFontCmss12
const Graphics_Font g_sFontCmss12b
const Graphics_Font g_sFontCmss12i
const Graphics_Font g_sFontCmss14
const Graphics_Font g_sFontCmss14b
const Graphics_Font g_sFontCmss14i
const Graphics_Font g_sFontCmss16
const Graphics_Font g_sFontCmss16b
const Graphics_Font g_sFontCmss16i
const Graphics_Font g_sFontCmss18
const Graphics_Font g_sFontCmss18b
const Graphics_Font g_sFontCmss18i
const Graphics_Font g_sFontCmss20
const Graphics_Font g_sFontCmss20b
const Graphics_Font g_sFontCmss20i
const Graphics_Font g_sFontCmss22
const Graphics_Font g_sFontCmss22b
const Graphics_Font g_sFontCmss22i
const Graphics_Font g_sFontCmss24
const Graphics_Font g_sFontCmss24b
const Graphics_Font g_sFontCmss24i
const Graphics_Font g_sFontCmss26
const Graphics_Font g_sFontCmss26b
const Graphics_Font g_sFontCmss26i
const Graphics_Font g_sFontCmss28
const Graphics_Font g_sFontCmss28b
const Graphics_Font g_sFontCmss28i
const Graphics_Font g_sFontCmss30
const Graphics_Font g_sFontCmss30b
const Graphics_Font g_sFontCmss30i
const Graphics_Font g_sFontCmss32
const Graphics_Font g_sFontCmss32b
const Graphics_Font g_sFontCmss32i
const Graphics_Font g_sFontCmss34
const Graphics_Font g_sFontCmss34b
const Graphics_Font g_sFontCmss34i
const Graphics_Font g_sFontCmss36
const Graphics_Font g_sFontCmss36b
const Graphics_Font g_sFontCmss36i
const Graphics_Font g_sFontCmss38
const Graphics_Font g_sFontCmss38b
const Graphics_Font g_sFontCmss38i
const Graphics_Font g_sFontCmss40
const Graphics_Font g_sFontCmss40b
const Graphics_Font g_sFontCmss40i
const Graphics_Font g_sFontCmss42
const Graphics_Font g_sFontCmss42b
const Graphics_Font g_sFontCmss42i
const Graphics_Font g_sFontCmss44
const Graphics_Font g_sFontCmss44b
const Graphics_Font g_sFontCmss44i
const Graphics_Font g_sFontCmss46
const Graphics_Font g_sFontCmss46b
const Graphics_Font g_sFontCmss46i
const Graphics_Font g_sFontCmss48
const Graphics_Font g_sFontCmss48b
const Graphics_Font g_sFontCmss48i
const Graphics_Font g_sFontCmtt12
const Graphics_Font g_sFontCmtt14
const Graphics_Font g_sFontCmtt16
const Graphics_Font g_sFontCmtt18
const Graphics_Font g_sFontCmtt20
const Graphics_Font g_sFontCmtt22
const Graphics_Font g_sFontCmtt24
const Graphics_Font g_sFontCmtt26
const Graphics_Font g_sFontCmtt28
const Graphics_Font g_sFontCmtt30
const Graphics_Font g_sFontCmtt32
const Graphics_Font g_sFontCmtt34
const Graphics_Font g_sFontCmtt36
const Graphics_Font g_sFontCmtt38
const Graphics_Font g_sFontCmtt40
const Graphics_Font g_sFontCmtt42
const Graphics_Font g_sFontCmtt44
const Graphics_Font g_sFontCmtt46
const Graphics_Font g_sFontCmtt48
const Graphics_Font g_sFontFixed6x8

Copyright 2016, Texas Instruments Incorporated