Data Fields
tDisplay Struct Reference

This structure defines the characteristics of a display driver. More...

#include <grlib.h>

Data Fields

long lSize
 The size of this structure.
void * pvDisplayData
 A pointer to display driver-specific data.
unsigned short usWidth
 The width of this display.
unsigned short usHeight
 The height of this display.
void(* pfnPixelDraw )(void *pvDisplayData, int lX, int lY, unsigned int ulValue)
 A pointer to the function to draw a pixel on this display.
void(* pfnPixelDrawMultiple )(void *pvDisplayData, int lX, int lY, int lX0, int lCount, int lBPP, const unsigned char *pucData, const unsigned int *pucPalette)
 A pointer to the function to draw multiple pixels on this display.
void(* pfnLineDrawH )(void *pvDisplayData, int lX1, int lX2, int lY, unsigned int ulValue)
 A pointer to the function to draw a horizontal line on this display.
void(* pfnLineDrawV )(void *pvDisplayData, int lX, int lY1, int lY2, unsigned int ulValue)
 A pointer to the function to draw a vertical line on this display.
void(* pfnRectFill )(void *pvDisplayData, const tRectangle *pRect, unsigned int ulValue)
 A pointer to the function to draw a filled rectangle on this display.
unsigned int(* pfnColorTranslate )(void *pvDisplayData, unsigned long ulValue)
void(* pfnFlush )(void *pvDisplayData)
void(* pfnClearDisplay )(void *pvDisplayData, unsigned char ucValue)

Detailed Description

This structure defines the characteristics of a display driver.


Field Documentation

The size of this structure.

A pointer to display driver-specific data.

unsigned short tDisplay::usWidth

The width of this display.

Referenced by GrContextInit().

unsigned short tDisplay::usHeight

The height of this display.

Referenced by GrContextInit().

void(* tDisplay::pfnPixelDraw)(void *pvDisplayData, int lX, int lY, unsigned int ulValue)

A pointer to the function to draw a pixel on this display.

void(* tDisplay::pfnPixelDrawMultiple)(void *pvDisplayData, int lX, int lY, int lX0, int lCount, int lBPP, const unsigned char *pucData, const unsigned int *pucPalette)

A pointer to the function to draw multiple pixels on this display.

void(* tDisplay::pfnLineDrawH)(void *pvDisplayData, int lX1, int lX2, int lY, unsigned int ulValue)

A pointer to the function to draw a horizontal line on this display.

void(* tDisplay::pfnLineDrawV)(void *pvDisplayData, int lX, int lY1, int lY2, unsigned int ulValue)

A pointer to the function to draw a vertical line on this display.

void(* tDisplay::pfnRectFill)(void *pvDisplayData, const tRectangle *pRect, unsigned int ulValue)

A pointer to the function to draw a filled rectangle on this display.

unsigned int(* tDisplay::pfnColorTranslate)(void *pvDisplayData, unsigned long ulValue)

A pointer to the function to translate 24-bit RGB colors to display-specific colors.

A pointer to the function to flush any cached drawing operations on this display.

void(* tDisplay::pfnClearDisplay)(void *pvDisplayData, unsigned char ucValue)

A pointer to the function to clears Display. Contents of display buffer unmodified


The documentation for this struct was generated from the following file:

Copyright 2012, Texas Instruments Incorporated