![]() |
Display Simple Graphics library
v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
|
#include "simplegfx.h"
Functions | |
void | drawRect (screen_t *dev, int x, int y, int w, int h, int color) |
Draws a rectangle in the specified color. More... | |
void drawRect | ( | screen_t * | dev, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
int | color | ||
) |
Draws a rectangle in the specified color.
dev | Pointer to the display's device structure returned by the initialization function. |
x | Starting horizontal coordinate of the rectangle, counted from the left side of the screen. |
y | Starting vertical coordinate of the rectangle, counted down from the top of the screen. |
w | Width of the rectangle. |
h | Height of the rectangle. |
color | Color of the shape, in the format native to the display. |