EFM32 Pearl Gecko 12 Software Documentation  efm32pg12-doc-5.1.2
glib_rectangle.c File Reference

Detailed Description

Silicon Labs Graphics Library: Rectangle Routines.

License

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.

#include <stdint.h>
#include "em_types.h"
#include "glib.h"

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...