Functions
Display_api

Functions

void Graphics_drawPixelOnDisplay (const Graphics_Display *display, uint16_t x, uint16_t y, 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 *palette)
 
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)
 
uint32_t Graphics_translateColorOnDisplay (const Graphics_Display *display, uint32_t value)
 
void Graphics_flushOnDisplay (const Graphics_Display *display)
 
void Graphics_clearDisplayOnDisplay (const Graphics_Display *display, uint16_t value)
 

Detailed Description

Function Documentation

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_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_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().

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_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_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().


Copyright 2016, Texas Instruments Incorporated