Display Simple Graphics library  v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
Functions
fillRoundRect.c File Reference
#include "simplegfx.h"

Functions

void fillRoundRect (screen_t *dev, int x, int y, int w, int h, int r, int color)
 Draws a filled rectangle with rounded corners in the specified color. More...
 

Function Documentation

◆ fillRoundRect()

void fillRoundRect ( screen_t dev,
int  x,
int  y,
int  w,
int  h,
int  r,
int  color 
)

Draws a filled rectangle with rounded corners in the specified color.

Parameters
devPointer to the display's device structure returned by the initialization function.
xStarting horizontal coordinate of the rectangle, counted from the left side of the screen.
yStarting vertical coordinate of the rectangle, counted down from the top of the screen.
wWidth of the rectangle.
hHeight of the rectangle.
rRadius of the rounded corners.
colorColor of the shape, in the format native to the display.