EFR32 Mighty Gecko 1 Software Documentation
efr32mg1-doc-5.1.2
|
Silicon Labs Graphics Library: Rectangle 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_rectangle.c.
Go to the source code of this file.
Functions | |
EMSTATUS | GLIB_drawRect (GLIB_Context_t *pContext, const GLIB_Rectangle_t *pRect) |
Draws a rectangle outline defined by the passed in rectangle. More... | |
EMSTATUS | GLIB_drawRectFilled (GLIB_Context_t *pContext, const GLIB_Rectangle_t *pRect) |
Draws a filled rectangle defined by the passed in rectangle. The filled rectangle is drawn from (xMin, yMin) to (xMax, yMax), inclusive, of the rectangle passed in. More... | |
void | GLIB_normalizeRect (GLIB_Rectangle_t *pRect) |
Normalize the rectangle that is passed in. Sets yMin to the minimum value of yMin and yMax. Sets yMax to the maximum value of yMin and yMax. And the same for xMin and xMax. More... | |
bool | GLIB_rectContainsPoint (const GLIB_Rectangle_t *pRect, int32_t x, int32_t y) |
Checks if the point passed in is in the interior of the rectangle passed in. More... | |