EFR32 Mighty Gecko 1 Software Documentation
efr32mg1-doc-5.1.2
|
Silicon Labs Graphics Library: General Routines.
Copyright 2015 Silicon Labs, http://www.silabs.com
This file is licensensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file glib.c.
Go to the source code of this file.
Macros | |
#define | GLIB_DEFAULT_FONT ((GLIB_Font_t *)&GLIB_FontNormal8x8) |
Functions | |
EMSTATUS | GLIB_applyClippingRegion (const GLIB_Context_t *pContext) |
Apply the clipping region from the GLIB_Context_t in the DMD driver. More... | |
EMSTATUS | GLIB_clear (GLIB_Context_t *pContext) |
Clears the display with the background color of the GLIB_Context_t. More... | |
EMSTATUS | GLIB_clearRegion (const GLIB_Context_t *pContext) |
Clears the clipping region by filling it with the background color of the GLIB_Context_t. More... | |
void | GLIB_colorTranslate24bpp (uint32_t color, uint8_t *red, uint8_t *green, uint8_t *blue) |
Extracts the color components from the 32-bit color passed and puts them in the passed in 8-bits ints. The color is 24-bit RGB. More... | |
EMSTATUS | GLIB_contextInit (GLIB_Context_t *pContext) |
Initialize the GLIB_Context_t. More... | |
EMSTATUS | GLIB_displaySleep () |
Sets the display in sleep mode. More... | |
EMSTATUS | GLIB_displayWakeUp () |
Returns the display from sleep mode. More... | |
EMSTATUS | GLIB_drawPixel (GLIB_Context_t *pContext, int32_t x, int32_t y) |
Draws a pixel at x, y using foregroundColor defined in the GLIB_Context_t. More... | |
EMSTATUS | GLIB_drawPixelColor (GLIB_Context_t *pContext, int32_t x, int32_t y, uint32_t color) |
Draws a pixel at x, y using the color parameter. More... | |
EMSTATUS | GLIB_drawPixelRGB (GLIB_Context_t *pContext, int32_t x, int32_t y, uint8_t red, uint8_t green, uint8_t blue) |
Draws a pixel at x, y with color defined by red, green and blue 1 byte per channel. More... | |
EMSTATUS | GLIB_resetClippingRegion (GLIB_Context_t *pContext) |
Reset the GLIB_Context_t clipping region to the whole display. More... | |
EMSTATUS | GLIB_resetDisplayClippingArea (GLIB_Context_t *pContext) |
Reset the display driver clipping area to the whole display. More... | |
uint32_t | GLIB_rgbColor (uint8_t red, uint8_t green, uint8_t blue) |
Convert 3 uint8_t color components into a 24-bit color. More... | |
EMSTATUS | GLIB_setClippingRegion (GLIB_Context_t *pContext, const GLIB_Rectangle_t *pRect) |
Sets the clippingRegion of the passed in GLIB_Context_t. More... | |
#define GLIB_DEFAULT_FONT ((GLIB_Font_t *)&GLIB_FontNormal8x8) |
Define the default font. An application can override the default font by defining GLIB_NO_DEFAULT_FONT and by providing a custom GLIB_DEFAULT_FONT macro that points to a GLIB_Font_t structure that should be used as a default font.
Definition at line 31 of file glib.c.
Referenced by GLIB_contextInit().