![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
Data Structures | |
struct | tImage |
This structure defines the characteristics of a Bitmap Image. More... | |
struct | tRectangle |
struct | tDisplayFxns |
This structure defines the implementation of a display driver. More... | |
struct | tDisplay |
This structure defines the characteristics of a display driver. More... | |
struct | tFont |
This structure describes a font used for drawing text onto the screen. More... | |
struct | tFontEx |
struct | tContext |
Macros | |
#define | FONT_FMT_UNCOMPRESSED 0x00 |
Indicates that the font data is stored in an uncompressed format. More... | |
#define | FONT_FMT_PIXEL_RLE 0x01 |
Indicates that the font data is stored using a pixel-based RLE format. More... | |
#define | FONT_EX_MARKER 0x80 |
#define | FONT_FMT_EX_UNCOMPRESSED (FONT_FMT_UNCOMPRESSED | FONT_EX_MARKER) |
#define | FONT_FMT_EX_PIXEL_RLE (FONT_FMT_PIXEL_RLE | FONT_EX_MARKER) |
#define | AUTO_STRING_LENGTH -1 |
#define | OPAQUE_TEXT 1 |
#define | TRANSPARENT_TEXT 0 |
#define | IMAGE_FMT_1BPP_UNCOMP 0x01 |
#define | IMAGE_FMT_2BPP_UNCOMP 0x02 |
#define | IMAGE_FMT_4BPP_UNCOMP 0x04 |
#define | IMAGE_FMT_8BPP_UNCOMP 0x08 |
#define | IMAGE_FMT_1BPP_COMP_RLE4 0x41 |
#define | IMAGE_FMT_2BPP_COMP_RLE4 0x42 |
#define | IMAGE_FMT_4BPP_COMP_RLE4 0x44 |
#define | IMAGE_FMT_1BPP_COMP_RLE7 0x71 |
#define | IMAGE_FMT_1BPP_COMP_RLE8 0x81 |
#define | IMAGE_FMT_2BPP_COMP_RLE8 0x82 |
#define | IMAGE_FMT_4BPP_COMP_RLE8 0x84 |
#define | IMAGE_FMT_8BPP_COMP_RLE8 0x88 |
#define | IMAGE_FMT_8BPP_COMP_RLEBLEND 0x28 |
#define | GrContextBackgroundSet(pContext, ulValue) |
#define | GrContextBackgroundSetTranslated(pContext, ulValue) |
#define | GrContextDpyWidthGet(pContext) (DpyWidthGet((pContext)->pDisplay)) |
#define | GrContextDpyHeightGet(pContext) (DpyHeightGet((pContext)->pDisplay)) |
#define | GrContextFontSet(pContext, pFnt) |
#define | GrContextForegroundSet(pContext, ulValue) |
#define | GrContextForegroundSetTranslated(pContext, ulValue) |
#define | GrFlush(pContext) |
#define | GrClearDisplay(pContext) |
#define | GrFontBaselineGet(pFont) ((pFont)->ucBaseline) |
#define | GrFontHeightGet(pFont) ((pFont)->ucHeight) |
#define | GrFontMaxWidthGet(pFont) ((pFont)->ucMaxWidth) |
#define | GrImageColorsGet(pImage) pImage->NumColors |
#define | GrImageHeightGet(pImage) pImage->YSize |
#define | GrImageWidthGet(pImage) pImage->XSize |
#define | GrOffScreen1BPPSize(lWidth, lHeight) (5 + (((lWidth + 7) / 8) * lHeight)) |
#define | GrOffScreen4BPPSize(lWidth, lHeight) (6 + (16 * 3) + (((lWidth + 1) / 2) * lHeight)) |
#define | GrOffScreen8BPPSize(lWidth, lHeight) (6 + (256 * 3) + (lWidth * lHeight)) |
#define | GrPixelDraw(pContext, lX, lY) |
#define | GrStringBaselineGet(pContext) ((pContext)->pFont->ucBaseline) |
#define | GrStringDrawCentered(pContext, pcString, lLength, lX, lY, bOpaque) |
#define | GrStringHeightGet(pContext) ((pContext)->pFont->ucHeight) |
#define | GrStringMaxWidthGet(pContext) ((pContext)->pFont->ucMaxWidth) |
#define | ClrAliceBlue 0x00F0F8FF |
#define | ClrAntiqueWhite 0x00FAEBD7 |
#define | ClrAqua 0x0000FFFF |
#define | ClrAquamarine 0x007FFFD4 |
#define | ClrAzure 0x00F0FFFF |
#define | ClrBeige 0x00F5F5DC |
#define | ClrBisque 0x00FFE4C4 |
#define | ClrBlack 0x00000000 |
#define | ClrBlack 0x00000000 |
#define | ClrBlanchedAlmond 0x00FFEBCD |
#define | ClrBlue 0x000000FF |
#define | ClrBlueViolet 0x008A2BE2 |
#define | ClrBrown 0x00A52A2A |
#define | ClrBurlyWood 0x00DEB887 |
#define | ClrCadetBlue 0x005F9EA0 |
#define | ClrChartreuse 0x007FFF00 |
#define | ClrChocolate 0x00D2691E |
#define | ClrCoral 0x00FF7F50 |
#define | ClrCornflowerBlue 0x006495ED |
#define | ClrCornsilk 0x00FFF8DC |
#define | ClrCrimson 0x00DC143C |
#define | ClrCyan 0x0000FFFF |
#define | ClrDarkBlue 0x0000008B |
#define | ClrDarkCyan 0x00008B8B |
#define | ClrDarkGoldenrod 0x00B8860B |
#define | ClrDarkGray 0x00A9A9A9 |
#define | ClrDarkGreen 0x00006400 |
#define | ClrDarkKhaki 0x00BDB76B |
#define | ClrDarkMagenta 0x008B008B |
#define | ClrDarkOliveGreen 0x00556B2F |
#define | ClrDarkOrange 0x00FF8C00 |
#define | ClrDarkOrchid 0x009932CC |
#define | ClrDarkRed 0x008B0000 |
#define | ClrDarkSalmon 0x00E9967A |
#define | ClrDarkSeaGreen 0x008FBC8F |
#define | ClrDarkSlateBlue 0x00483D8B |
#define | ClrDarkSlateGray 0x002F4F4F |
#define | ClrDarkTurquoise 0x0000CED1 |
#define | ClrDarkViolet 0x009400D3 |
#define | ClrDeepPink 0x00FF1493 |
#define | ClrDeepSkyBlue 0x0000BFFF |
#define | ClrDimGray 0x00696969 |
#define | ClrDodgerBlue 0x001E90FF |
#define | ClrFireBrick 0x00B22222 |
#define | ClrFloralWhite 0x00FFFAF0 |
#define | ClrForestGreen 0x00228B22 |
#define | ClrFuchsia 0x00FF00FF |
#define | ClrGainsboro 0x00DCDCDC |
#define | ClrGhostWhite 0x00F8F8FF |
#define | ClrGold 0x00FFD700 |
#define | ClrGoldenrod 0x00DAA520 |
#define | ClrGray 0x00808080 |
#define | ClrGreen 0x00008000 |
#define | ClrGreenYellow 0x00ADFF2F |
#define | ClrHoneydew 0x00F0FFF0 |
#define | ClrHotPink 0x00FF69B4 |
#define | ClrIndianRed 0x00CD5C5C |
#define | ClrIndigo 0x004B0082 |
#define | ClrIvory 0x00FFFFF0 |
#define | ClrKhaki 0x00F0E68C |
#define | ClrLavender 0x00E6E6FA |
#define | ClrLavenderBlush 0x00FFF0F5 |
#define | ClrLawnGreen 0x007CFC00 |
#define | ClrLemonChiffon 0x00FFFACD |
#define | ClrLightBlue 0x00ADD8E6 |
#define | ClrLightCoral 0x00F08080 |
#define | ClrLightCyan 0x00E0FFFF |
#define | ClrLightGoldenrodYellow 0x00FAFAD2 |
#define | ClrLightGreen 0x0090EE90 |
#define | ClrLightGrey 0x00D3D3D3 |
#define | ClrLightPink 0x00FFB6C1 |
#define | ClrLightSalmon 0x00FFA07A |
#define | ClrLightSeaGreen 0x0020B2AA |
#define | ClrLightSkyBlue 0x0087CEFA |
#define | ClrLightSlateGray 0x00778899 |
#define | ClrLightSteelBlue 0x00B0C4DE |
#define | ClrLightYellow 0x00FFFFE0 |
#define | ClrLime 0x0000FF00 |
#define | ClrLimeGreen 0x0032CD32 |
#define | ClrLinen 0x00FAF0E6 |
#define | ClrMagenta 0x00FF00FF |
#define | ClrMaroon 0x00800000 |
#define | ClrMediumAquamarine 0x0066CDAA |
#define | ClrMediumBlue 0x000000CD |
#define | ClrMediumOrchid 0x00BA55D3 |
#define | ClrMediumPurple 0x009370DB |
#define | ClrMediumSeaGreen 0x003CB371 |
#define | ClrMediumSlateBlue 0x007B68EE |
#define | ClrMediumSpringGreen 0x0000FA9A |
#define | ClrMediumTurquoise 0x0048D1CC |
#define | ClrMediumVioletRed 0x00C71585 |
#define | ClrMidnightBlue 0x00191970 |
#define | ClrMintCream 0x00F5FFFA |
#define | ClrMistyRose 0x00FFE4E1 |
#define | ClrMoccasin 0x00FFE4B5 |
#define | ClrNavajoWhite 0x00FFDEAD |
#define | ClrNavy 0x00000080 |
#define | ClrOldLace 0x00FDF5E6 |
#define | ClrOlive 0x00808000 |
#define | ClrOliveDrab 0x006B8E23 |
#define | ClrOrange 0x00FFA500 |
#define | ClrOrangeRed 0x00FF4500 |
#define | ClrOrchid 0x00DA70D6 |
#define | ClrPaleGoldenrod 0x00EEE8AA |
#define | ClrPaleGreen 0x0098FB98 |
#define | ClrPaleTurquoise 0x00AFEEEE |
#define | ClrPaleVioletRed 0x00DB7093 |
#define | ClrPapayaWhip 0x00FFEFD5 |
#define | ClrPeachPuff 0x00FFDAB9 |
#define | ClrPeru 0x00CD853F |
#define | ClrPink 0x00FFC0CB |
#define | ClrPlum 0x00DDA0DD |
#define | ClrPowderBlue 0x00B0E0E6 |
#define | ClrPurple 0x00800080 |
#define | ClrRed 0x00FF0000 |
#define | ClrRosyBrown 0x00BC8F8F |
#define | ClrRoyalBlue 0x004169E1 |
#define | ClrSaddleBrown 0x008B4513 |
#define | ClrSalmon 0x00FA8072 |
#define | ClrSandyBrown 0x00F4A460 |
#define | ClrSeaGreen 0x002E8B57 |
#define | ClrSeashell 0x00FFF5EE |
#define | ClrSienna 0x00A0522D |
#define | ClrSilver 0x00C0C0C0 |
#define | ClrSkyBlue 0x0087CEEB |
#define | ClrSlateBlue 0x006A5ACD |
#define | ClrSlateGray 0x00708090 |
#define | ClrSnow 0x00FFFAFA |
#define | ClrSpringGreen 0x0000FF7F |
#define | ClrSteelBlue 0x004682B4 |
#define | ClrTan 0x00D2B48C |
#define | ClrTeal 0x00008080 |
#define | ClrThistle 0x00D8BFD8 |
#define | ClrTomato 0x00FF6347 |
#define | ClrTurquoise 0x0040E0D0 |
#define | ClrViolet 0x00EE82EE |
#define | ClrWheat 0x00F5DEB3 |
#define | ClrWhite 0x00FFFFFF |
#define | ClrWhiteSmoke 0x00F5F5F5 |
#define | ClrYellow 0x00FFFF00 |
#define | ClrYellowGreen 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 |
#define | DpyColorTranslate(pDisplay, ulValue) ((pDisplay)->pFxns->pfnColorTranslate((pDisplay)->pvDisplayData, ulValue)) |
#define | DpyFlush(pDisplay) |
#define | DpyClearDisplay(pDisplay, ulValue) |
#define | DpyHeightGet(pDisplay) ((pDisplay)->usHeight) |
#define | DpyLineDrawH(pDisplay, lX1, lX2, lY, ulValue) |
#define | DpyLineDrawV(pDisplay, lX, lY1, lY2, ulValue) |
#define | DpyPixelDraw(pDisplay, lX, lY, ulValue) |
#define | DpyPixelDrawMultiple(pDisplay, lX, lY, lX0, lCount, lBPP, pucData, pucPalette) |
#define | DpyRectFill(pDisplay, pRect, ulValue) |
#define | DpyWidthGet(pDisplay) ((pDisplay)->usWidth) |
#define | GrRectContainsPoint(pRect, lX, lY) |
Typedefs | |
typedef struct tDisplay | tDisplay |
typedef struct tDisplayFxns | tDisplayFxns |
This structure defines the implementation of a display driver. More... | |
Functions | |
void | GrCircleDraw (const tContext *pContext, int32_t lX, int32_t lY, int32_t lRadius) |
void | GrCircleFill (const tContext *pContext, int32_t lX, int32_t lY, int32_t lRadius) |
void | GrContextClipRegionSet (tContext *pContext, tRectangle *pRect) |
void | GrContextInit (tContext *pContext, tDisplay *pDisplay, const tDisplayFxns *pFxns) |
void | GrImageDraw (const tContext *pContext, const tImage *pBitmap, int16_t lX, int16_t lY) |
void | GrLineDraw (const tContext *pContext, int32_t lX1, int32_t lY1, int32_t lX2, int32_t lY2) |
void | GrLineDrawH (const tContext *pContext, int32_t lX1, int32_t lX2, int32_t lY) |
void | GrLineDrawV (const tContext *pContext, int32_t lX, int32_t lY1, int32_t lY2) |
void | GrRectDraw (const tContext *pContext, const tRectangle *pRect) |
void | GrRectFill (const tContext *pContext, const tRectangle *pRect) |
void | GrStringDraw (const tContext *pContext, const char *pcString, int32_t lLength, int32_t lX, int32_t lY, uint32_t bOpaque) |
int32_t | GrStringWidthGet (const tContext *pContext, const char *pcString, int32_t lLength) |
int32_t | GrRectOverlapCheck (tRectangle *psRect1, tRectangle *psRect2) |
int32_t | GrRectIntersectGet (tRectangle *psRect1, tRectangle *psRect2, tRectangle *psIntersect) |
#define FONT_FMT_UNCOMPRESSED 0x00 |
Indicates that the font data is stored in an uncompressed format.
#define FONT_FMT_PIXEL_RLE 0x01 |
Indicates that the font data is stored using a pixel-based RLE format.
#define FONT_EX_MARKER 0x80 |
A marker used in the ucFormat field of a font to indicates that the font data is stored using the new tFontEx structure.
#define 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 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 AUTO_STRING_LENGTH -1 |
Value to automatically draw the entire length of the string (subject to clipping)
#define OPAQUE_TEXT 1 |
Value to draw text opaque The text foreground and background are drawn together
#define TRANSPARENT_TEXT 0 |
Value to draw text transparently The text only (no background) is drawn
#define IMAGE_FMT_1BPP_UNCOMP 0x01 |
Indicates that the image data is not compressed and represents each pixel with a single bit.
#define IMAGE_FMT_2BPP_UNCOMP 0x02 |
Indicates that the image data is not compressed and represents each pixel with two bits.
#define IMAGE_FMT_4BPP_UNCOMP 0x04 |
Indicates that the image data is not compressed and represents each pixel with four bits.
#define IMAGE_FMT_8BPP_UNCOMP 0x08 |
Indicates that the image data is not compressed and represents each pixel with eight bits.
#define 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 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 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 IMAGE_FMT_1BPP_COMP_RLE7 0x71 |
Indicates that the image data is compressed with 7 bit Run Length Encoding and represents each pixel with a single bit.
#define 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 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 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 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 IMAGE_FMT_8BPP_COMP_RLEBLEND 0x28 |
Indicates that the image data is compressed and represents each pixel with info bits.
#define GrContextBackgroundSet | ( | pContext, | |
ulValue | |||
) |
Sets the background color to be used.
pContext | is a pointer to the drawing context to modify. |
ulValue | is 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.
#define GrContextBackgroundSetTranslated | ( | pContext, | |
ulValue | |||
) |
Sets the background color to be used.
pContext | is a pointer to the drawing context to modify. |
ulValue | is the display driver-specific color to be used. |
This function sets the background 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 DpyColorTranslate()).
#define GrContextDpyWidthGet | ( | pContext | ) | (DpyWidthGet((pContext)->pDisplay)) |
Gets the width of the display being used by this drawing context.
pContext | is a pointer to the drawing context to query. |
This function returns the width of the display that is being used by this drawing context.
#define GrContextDpyHeightGet | ( | pContext | ) | (DpyHeightGet((pContext)->pDisplay)) |
Gets the height of the display being used by this drawing context.
pContext | is a pointer to the drawing context to query. |
This function returns the height of the display that is being used by this drawing context.
#define GrContextFontSet | ( | pContext, | |
pFnt | |||
) |
Sets the font to be used.
pContext | is a pointer to the drawing context to modify. |
pFnt | is 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 pFont pointer before passing it as the pFnt parameter.
#define GrContextForegroundSet | ( | pContext, | |
ulValue | |||
) |
Sets the foreground color to be used.
pContext | is a pointer to the drawing context to modify. |
ulValue | is the 24-bit RGB color to be used. |
This function sets the color to be used for drawing operations in the specified drawing context.
#define GrContextForegroundSetTranslated | ( | pContext, | |
ulValue | |||
) |
Sets the foreground color to be used.
pContext | is a pointer to the drawing context to modify. |
ulValue | is 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 DpyColorTranslate()).
#define GrFlush | ( | pContext | ) |
Flushes any cached drawing operations.
pContext | is 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.
#define GrClearDisplay | ( | pContext | ) |
Forces a clear screen. Contents of Display buffer unmodified
pContext | is a pointer to the drawing context to use. |
This function forces a clear screen.
#define GrFontBaselineGet | ( | pFont | ) | ((pFont)->ucBaseline) |
Gets the baseline of a font.
pFont | is 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'').
#define GrFontHeightGet | ( | pFont | ) | ((pFont)->ucHeight) |
Gets the height of a font.
pFont | is 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.
#define GrFontMaxWidthGet | ( | pFont | ) | ((pFont)->ucMaxWidth) |
Gets the maximum width of a font.
pFont | is 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.
#define GrImageColorsGet | ( | pImage | ) | pImage->NumColors |
Gets the number of colors in an image.
pImage | is 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.
#define GrImageHeightGet | ( | pImage | ) | pImage->YSize |
Gets the height of an image.
pImage | is a tImage struct |
This function determines the height of an image in pixels.
#define GrImageWidthGet | ( | pImage | ) | pImage->XSize |
Gets the width of an image.
pImage | is a tImage struct |
This function determines the width of an image in pixels.
#define GrOffScreen1BPPSize | ( | lWidth, | |
lHeight | |||
) | (5 + (((lWidth + 7) / 8) * lHeight)) |
Determines the size of the buffer for a 1 BPP off-screen image.
lWidth | is the width of the image in pixels. |
lHeight | is 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.
#define GrOffScreen4BPPSize | ( | lWidth, | |
lHeight | |||
) | (6 + (16 * 3) + (((lWidth + 1) / 2) * lHeight)) |
Determines the size of the buffer for a 4 BPP off-screen image.
lWidth | is the width of the image in pixels. |
lHeight | is 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.
#define GrOffScreen8BPPSize | ( | lWidth, | |
lHeight | |||
) | (6 + (256 * 3) + (lWidth * lHeight)) |
Determines the size of the buffer for an 8 BPP off-screen image.
lWidth | is the width of the image in pixels. |
lHeight | is 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.
#define GrPixelDraw | ( | pContext, | |
lX, | |||
lY | |||
) |
Draws a pixel.
pContext | is a pointer to the drawing context to use. |
lX | is the X coordinate of the pixel. |
lY | is the Y coordinate of the pixel. |
This function draws a pixel if it resides within the clipping region.
#define GrStringBaselineGet | ( | pContext | ) | ((pContext)->pFont->ucBaseline) |
Gets the baseline of a string.
pContext | is 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'').
#define GrStringDrawCentered | ( | pContext, | |
pcString, | |||
lLength, | |||
lX, | |||
lY, | |||
bOpaque | |||
) |
Draws a centered string.
pContext | is a pointer to the drawing context to use. |
pcString | is a pointer to the string to be drawn. |
lLength | is the number of characters from the string that should be drawn on the screen. |
lX | is the X coordinate of the center of the string position on the screen. |
lY | is the Y coordinate of the center of the string position on the screen. |
bOpaque | is 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).
#define GrStringHeightGet | ( | pContext | ) | ((pContext)->pFont->ucHeight) |
Gets the height of a string.
pContext | is 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.
#define GrStringMaxWidthGet | ( | pContext | ) | ((pContext)->pFont->ucMaxWidth) |
Gets the maximum width of a character in a string.
pContext | is 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.
#define ClrAliceBlue 0x00F0F8FF |
#define ClrAntiqueWhite 0x00FAEBD7 |
#define ClrAqua 0x0000FFFF |
#define ClrAquamarine 0x007FFFD4 |
#define ClrAzure 0x00F0FFFF |
#define ClrBeige 0x00F5F5DC |
#define ClrBisque 0x00FFE4C4 |
#define ClrBlack 0x00000000 |
#define ClrBlack 0x00000000 |
#define ClrBlanchedAlmond 0x00FFEBCD |
#define ClrBlue 0x000000FF |
#define ClrBlueViolet 0x008A2BE2 |
#define ClrBrown 0x00A52A2A |
#define ClrBurlyWood 0x00DEB887 |
#define ClrCadetBlue 0x005F9EA0 |
#define ClrChartreuse 0x007FFF00 |
#define ClrChocolate 0x00D2691E |
#define ClrCoral 0x00FF7F50 |
#define ClrCornflowerBlue 0x006495ED |
#define ClrCornsilk 0x00FFF8DC |
#define ClrCrimson 0x00DC143C |
#define ClrCyan 0x0000FFFF |
#define ClrDarkBlue 0x0000008B |
#define ClrDarkCyan 0x00008B8B |
#define ClrDarkGoldenrod 0x00B8860B |
#define ClrDarkGray 0x00A9A9A9 |
#define ClrDarkGreen 0x00006400 |
#define ClrDarkKhaki 0x00BDB76B |
#define ClrDarkMagenta 0x008B008B |
#define ClrDarkOliveGreen 0x00556B2F |
#define ClrDarkOrange 0x00FF8C00 |
#define ClrDarkOrchid 0x009932CC |
#define ClrDarkRed 0x008B0000 |
#define ClrDarkSalmon 0x00E9967A |
#define ClrDarkSeaGreen 0x008FBC8F |
#define ClrDarkSlateBlue 0x00483D8B |
#define ClrDarkSlateGray 0x002F4F4F |
#define ClrDarkTurquoise 0x0000CED1 |
#define ClrDarkViolet 0x009400D3 |
#define ClrDeepPink 0x00FF1493 |
#define ClrDeepSkyBlue 0x0000BFFF |
#define ClrDimGray 0x00696969 |
#define ClrDodgerBlue 0x001E90FF |
#define ClrFireBrick 0x00B22222 |
#define ClrFloralWhite 0x00FFFAF0 |
#define ClrForestGreen 0x00228B22 |
#define ClrFuchsia 0x00FF00FF |
#define ClrGainsboro 0x00DCDCDC |
#define ClrGhostWhite 0x00F8F8FF |
#define ClrGold 0x00FFD700 |
#define ClrGoldenrod 0x00DAA520 |
#define ClrGray 0x00808080 |
#define ClrGreen 0x00008000 |
#define ClrGreenYellow 0x00ADFF2F |
#define ClrHoneydew 0x00F0FFF0 |
#define ClrHotPink 0x00FF69B4 |
#define ClrIndianRed 0x00CD5C5C |
#define ClrIndigo 0x004B0082 |
#define ClrIvory 0x00FFFFF0 |
#define ClrKhaki 0x00F0E68C |
#define ClrLavender 0x00E6E6FA |
#define ClrLavenderBlush 0x00FFF0F5 |
#define ClrLawnGreen 0x007CFC00 |
#define ClrLemonChiffon 0x00FFFACD |
#define ClrLightBlue 0x00ADD8E6 |
#define ClrLightCoral 0x00F08080 |
#define ClrLightCyan 0x00E0FFFF |
#define ClrLightGoldenrodYellow 0x00FAFAD2 |
#define ClrLightGreen 0x0090EE90 |
#define ClrLightGrey 0x00D3D3D3 |
#define ClrLightPink 0x00FFB6C1 |
#define ClrLightSalmon 0x00FFA07A |
#define ClrLightSeaGreen 0x0020B2AA |
#define ClrLightSkyBlue 0x0087CEFA |
#define ClrLightSlateGray 0x00778899 |
#define ClrLightSteelBlue 0x00B0C4DE |
#define ClrLightYellow 0x00FFFFE0 |
#define ClrLime 0x0000FF00 |
#define ClrLimeGreen 0x0032CD32 |
#define ClrLinen 0x00FAF0E6 |
#define ClrMagenta 0x00FF00FF |
#define ClrMaroon 0x00800000 |
#define ClrMediumAquamarine 0x0066CDAA |
#define ClrMediumBlue 0x000000CD |
#define ClrMediumOrchid 0x00BA55D3 |
#define ClrMediumPurple 0x009370DB |
#define ClrMediumSeaGreen 0x003CB371 |
#define ClrMediumSlateBlue 0x007B68EE |
#define ClrMediumSpringGreen 0x0000FA9A |
#define ClrMediumTurquoise 0x0048D1CC |
#define ClrMediumVioletRed 0x00C71585 |
#define ClrMidnightBlue 0x00191970 |
#define ClrMintCream 0x00F5FFFA |
#define ClrMistyRose 0x00FFE4E1 |
#define ClrMoccasin 0x00FFE4B5 |
#define ClrNavajoWhite 0x00FFDEAD |
#define ClrNavy 0x00000080 |
#define ClrOldLace 0x00FDF5E6 |
#define ClrOlive 0x00808000 |
#define ClrOliveDrab 0x006B8E23 |
#define ClrOrange 0x00FFA500 |
#define ClrOrangeRed 0x00FF4500 |
#define ClrOrchid 0x00DA70D6 |
#define ClrPaleGoldenrod 0x00EEE8AA |
#define ClrPaleGreen 0x0098FB98 |
#define ClrPaleTurquoise 0x00AFEEEE |
#define ClrPaleVioletRed 0x00DB7093 |
#define ClrPapayaWhip 0x00FFEFD5 |
#define ClrPeachPuff 0x00FFDAB9 |
#define ClrPeru 0x00CD853F |
#define ClrPink 0x00FFC0CB |
#define ClrPlum 0x00DDA0DD |
#define ClrPowderBlue 0x00B0E0E6 |
#define ClrPurple 0x00800080 |
#define ClrRed 0x00FF0000 |
#define ClrRosyBrown 0x00BC8F8F |
#define ClrRoyalBlue 0x004169E1 |
#define ClrSaddleBrown 0x008B4513 |
#define ClrSalmon 0x00FA8072 |
#define ClrSandyBrown 0x00F4A460 |
#define ClrSeaGreen 0x002E8B57 |
#define ClrSeashell 0x00FFF5EE |
#define ClrSienna 0x00A0522D |
#define ClrSilver 0x00C0C0C0 |
#define ClrSkyBlue 0x0087CEEB |
#define ClrSlateBlue 0x006A5ACD |
#define ClrSlateGray 0x00708090 |
#define ClrSnow 0x00FFFAFA |
#define ClrSpringGreen 0x0000FF7F |
#define ClrSteelBlue 0x004682B4 |
#define ClrTan 0x00D2B48C |
#define ClrTeal 0x00008080 |
#define ClrThistle 0x00D8BFD8 |
#define ClrTomato 0x00FF6347 |
#define ClrTurquoise 0x0040E0D0 |
#define ClrViolet 0x00EE82EE |
#define ClrWheat 0x00F5DEB3 |
#define ClrWhite 0x00FFFFFF |
#define ClrWhiteSmoke 0x00F5F5F5 |
#define ClrYellow 0x00FFFF00 |
#define ClrYellowGreen 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 |
#define DpyColorTranslate | ( | pDisplay, | |
ulValue | |||
) | ((pDisplay)->pFxns->pfnColorTranslate((pDisplay)->pvDisplayData, ulValue)) |
Translates a 24-bit RGB color to a display driver-specific color.
pDisplay | is the pointer to the display driver structure for the display to operate upon. |
ulValue | is 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.
#define DpyFlush | ( | pDisplay | ) |
#define DpyClearDisplay | ( | pDisplay, | |
ulValue | |||
) |
Forces a clear Display.
pDisplay | is the pointer to the display driver structure for the display to operate upon. |
ulValue | is the current background color to fill the screen with. |
This function clears the Display
#define DpyHeightGet | ( | pDisplay | ) | ((pDisplay)->usHeight) |
Gets the height of the display.
pDisplay | is a pointer to the display driver structure for the display to query. |
This function determines the height of the display.
#define DpyLineDrawH | ( | pDisplay, | |
lX1, | |||
lX2, | |||
lY, | |||
ulValue | |||
) |
Draws a horizontal line on a display.
pDisplay | is the pointer to the display driver structure for the display to operate upon. |
lX1 | is the starting X coordinate of the line. |
lX2 | is the ending X coordinate of the line. |
lY | is the Y coordinate of the line. |
ulValue | is 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.
#define DpyLineDrawV | ( | pDisplay, | |
lX, | |||
lY1, | |||
lY2, | |||
ulValue | |||
) |
Draws a vertical line on a display.
pDisplay | is the pointer to the display driver structure for the display to operate upon. |
lX | is the X coordinate of the line. |
lY1 | is the starting Y coordinate of the line. |
lY2 | is the ending Y coordinate of the line. |
ulValue | is 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.
#define DpyPixelDraw | ( | pDisplay, | |
lX, | |||
lY, | |||
ulValue | |||
) |
Draws a pixel on a display.
pDisplay | is the pointer to the display driver structure for the display to operate upon. |
lX | is the X coordinate of the pixel. |
lY | is the Y coordinate of the pixel. |
ulValue | is the color to draw the pixel. |
This function draws a pixel on a display. This assumes that clipping has already been performed.
#define DpyPixelDrawMultiple | ( | pDisplay, | |
lX, | |||
lY, | |||
lX0, | |||
lCount, | |||
lBPP, | |||
pucData, | |||
pucPalette | |||
) |
Draws a horizontal sequence of pixels on a display.
pDisplay | is the pointer to the display driver structure for the display to operate upon. |
lX | is the X coordinate of the first pixel. |
lY | is the Y coordinate of the first pixel. |
lX0 | is sub-pixel offset within the pixel data, which is valid for 1 or 4 bit per pixel formats. |
lCount | is the number of pixels to draw. |
lBPP | is the number of bits per pixel; must be 1, 4, or 8. |
pucData | is a pointer to the pixel data. For 1 and 4 bit per pixel formats, the most significant bit(s) represent the left-most pixel. |
pucPalette | is 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.
#define DpyRectFill | ( | pDisplay, | |
pRect, | |||
ulValue | |||
) |
Fills a rectangle on a display.
pDisplay | is the pointer to the display driver structure for the display to operate upon. |
pRect | is a pointer to the structure describing the rectangle to fill. |
ulValue | is 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.
#define DpyWidthGet | ( | pDisplay | ) | ((pDisplay)->usWidth) |
Gets the width of the display.
pDisplay | is a pointer to the display driver structure for the display to query. |
This function determines the width of the display.
#define GrRectContainsPoint | ( | pRect, | |
lX, | |||
lY | |||
) |
Determines if a point lies within a given rectangle.
pRect | is a pointer to the rectangle which the point is to be checked against. |
lX | is the X coordinate of the point to be checked. |
lY | is the Y coordinate of the point to be checked. |
This function determines whether point (lX, lY) lies within the rectangle described by pRect.
typedef struct tDisplayFxns tDisplayFxns |
This structure defines the implementation of a display driver.
void GrCircleDraw | ( | const tContext * | pContext, |
int32_t | lX, | ||
int32_t | lY, | ||
int32_t | lRadius | ||
) |
void GrCircleFill | ( | const tContext * | pContext, |
int32_t | lX, | ||
int32_t | lY, | ||
int32_t | lRadius | ||
) |
void GrContextClipRegionSet | ( | tContext * | pContext, |
tRectangle * | pRect | ||
) |
void GrContextInit | ( | tContext * | pContext, |
tDisplay * | pDisplay, | ||
const tDisplayFxns * | pFxns | ||
) |
void GrLineDraw | ( | const tContext * | pContext, |
int32_t | lX1, | ||
int32_t | lY1, | ||
int32_t | lX2, | ||
int32_t | lY2 | ||
) |
void GrLineDrawH | ( | const tContext * | pContext, |
int32_t | lX1, | ||
int32_t | lX2, | ||
int32_t | lY | ||
) |
void GrLineDrawV | ( | const tContext * | pContext, |
int32_t | lX, | ||
int32_t | lY1, | ||
int32_t | lY2 | ||
) |
void GrRectDraw | ( | const tContext * | pContext, |
const tRectangle * | pRect | ||
) |
void GrRectFill | ( | const tContext * | pContext, |
const tRectangle * | pRect | ||
) |
void GrStringDraw | ( | const tContext * | pContext, |
const char * | pcString, | ||
int32_t | lLength, | ||
int32_t | lX, | ||
int32_t | lY, | ||
uint32_t | bOpaque | ||
) |
int32_t GrStringWidthGet | ( | const tContext * | pContext, |
const char * | pcString, | ||
int32_t | lLength | ||
) |
int32_t GrRectOverlapCheck | ( | tRectangle * | psRect1, |
tRectangle * | psRect2 | ||
) |
int32_t GrRectIntersectGet | ( | tRectangle * | psRect1, |
tRectangle * | psRect2, | ||
tRectangle * | psIntersect | ||
) |
const tFont g_sFontCm12 |
const tFont g_sFontCm12b |
const tFont g_sFontCm12i |
const tFont g_sFontCm14 |
const tFont g_sFontCm14b |
const tFont g_sFontCm14i |
const tFont g_sFontCm16 |
const tFont g_sFontCm16b |
const tFont g_sFontCm16i |
const tFont g_sFontCm18 |
const tFont g_sFontCm18b |
const tFont g_sFontCm18i |
const tFont g_sFontCm20 |
const tFont g_sFontCm20b |
const tFont g_sFontCm20i |
const tFont g_sFontCm22 |
const tFont g_sFontCm22b |
const tFont g_sFontCm22i |
const tFont g_sFontCm24 |
const tFont g_sFontCm24b |
const tFont g_sFontCm24i |
const tFont g_sFontCm26 |
const tFont g_sFontCm26b |
const tFont g_sFontCm26i |
const tFont g_sFontCm28 |
const tFont g_sFontCm28b |
const tFont g_sFontCm28i |
const tFont g_sFontCm30 |
const tFont g_sFontCm30b |
const tFont g_sFontCm30i |
const tFont g_sFontCm32 |
const tFont g_sFontCm32b |
const tFont g_sFontCm32i |
const tFont g_sFontCm34 |
const tFont g_sFontCm34b |
const tFont g_sFontCm34i |
const tFont g_sFontCm36 |
const tFont g_sFontCm36b |
const tFont g_sFontCm36i |
const tFont g_sFontCm38 |
const tFont g_sFontCm38b |
const tFont g_sFontCm38i |
const tFont g_sFontCm40 |
const tFont g_sFontCm40b |
const tFont g_sFontCm40i |
const tFont g_sFontCm42 |
const tFont g_sFontCm42b |
const tFont g_sFontCm42i |
const tFont g_sFontCm44 |
const tFont g_sFontCm44b |
const tFont g_sFontCm44i |
const tFont g_sFontCm46 |
const tFont g_sFontCm46b |
const tFont g_sFontCm46i |
const tFont g_sFontCm48 |
const tFont g_sFontCm48b |
const tFont g_sFontCm48i |
const tFont g_sFontCmsc12 |
const tFont g_sFontCmsc14 |
const tFont g_sFontCmsc16 |
const tFont g_sFontCmsc18 |
const tFont g_sFontCmsc20 |
const tFont g_sFontCmsc22 |
const tFont g_sFontCmsc24 |
const tFont g_sFontCmsc26 |
const tFont g_sFontCmsc28 |
const tFont g_sFontCmsc30 |
const tFont g_sFontCmsc32 |
const tFont g_sFontCmsc34 |
const tFont g_sFontCmsc36 |
const tFont g_sFontCmsc38 |
const tFont g_sFontCmsc40 |
const tFont g_sFontCmsc42 |
const tFont g_sFontCmsc44 |
const tFont g_sFontCmsc46 |
const tFont g_sFontCmsc48 |
const tFont g_sFontCmss12 |
const tFont g_sFontCmss12b |
const tFont g_sFontCmss12i |
const tFont g_sFontCmss14 |
const tFont g_sFontCmss14b |
const tFont g_sFontCmss14i |
const tFont g_sFontCmss16 |
const tFont g_sFontCmss16b |
const tFont g_sFontCmss16i |
const tFont g_sFontCmss18 |
const tFont g_sFontCmss18b |
const tFont g_sFontCmss18i |
const tFont g_sFontCmss20 |
const tFont g_sFontCmss20b |
const tFont g_sFontCmss20i |
const tFont g_sFontCmss22 |
const tFont g_sFontCmss22b |
const tFont g_sFontCmss22i |
const tFont g_sFontCmss24 |
const tFont g_sFontCmss24b |
const tFont g_sFontCmss24i |
const tFont g_sFontCmss26 |
const tFont g_sFontCmss26b |
const tFont g_sFontCmss26i |
const tFont g_sFontCmss28 |
const tFont g_sFontCmss28b |
const tFont g_sFontCmss28i |
const tFont g_sFontCmss30 |
const tFont g_sFontCmss30b |
const tFont g_sFontCmss30i |
const tFont g_sFontCmss32 |
const tFont g_sFontCmss32b |
const tFont g_sFontCmss32i |
const tFont g_sFontCmss34 |
const tFont g_sFontCmss34b |
const tFont g_sFontCmss34i |
const tFont g_sFontCmss36 |
const tFont g_sFontCmss36b |
const tFont g_sFontCmss36i |
const tFont g_sFontCmss38 |
const tFont g_sFontCmss38b |
const tFont g_sFontCmss38i |
const tFont g_sFontCmss40 |
const tFont g_sFontCmss40b |
const tFont g_sFontCmss40i |
const tFont g_sFontCmss42 |
const tFont g_sFontCmss42b |
const tFont g_sFontCmss42i |
const tFont g_sFontCmss44 |
const tFont g_sFontCmss44b |
const tFont g_sFontCmss44i |
const tFont g_sFontCmss46 |
const tFont g_sFontCmss46b |
const tFont g_sFontCmss46i |
const tFont g_sFontCmss48 |
const tFont g_sFontCmss48b |
const tFont g_sFontCmss48i |
const tFont g_sFontCmtt12 |
const tFont g_sFontCmtt14 |
const tFont g_sFontCmtt16 |
const tFont g_sFontCmtt18 |
const tFont g_sFontCmtt20 |
const tFont g_sFontCmtt22 |
const tFont g_sFontCmtt24 |
const tFont g_sFontCmtt26 |
const tFont g_sFontCmtt28 |
const tFont g_sFontCmtt30 |
const tFont g_sFontCmtt32 |
const tFont g_sFontCmtt34 |
const tFont g_sFontCmtt36 |
const tFont g_sFontCmtt38 |
const tFont g_sFontCmtt40 |
const tFont g_sFontCmtt42 |
const tFont g_sFontCmtt44 |
const tFont g_sFontCmtt46 |
const tFont g_sFontCmtt48 |
const tFont g_sFontFixed6x8 |