tcMenu
Loading...
Searching...
No Matches
DrawingPrimitives.h File Reference

contains a series of core components needed by all graphical renderers More...

Go to the source code of this file.

Classes

struct  tcgfx::MenuFontDef
struct  tcgfx::MenuPadding
struct  tcgfx::MenuBorder
struct  tcgfx::Coord
class  tcgfx::DrawableIcon

Typedefs

typedef uint32_t tcgfx::color_t

Enumerations

enum  tcgfx::BorderType { tcgfx::BORD_OUTLINE_SQUARE = 0 , tcgfx::BORD_FILL_ROUNDED = 1 , tcgfx::BORD_OUTLINE_ROUNDED = 2 }

Functions

void tcgfx::makePadding (MenuPadding &padding, int top, int right, int bottom, int left)

Detailed Description

contains a series of core components needed by all graphical renderers

Typedef Documentation

◆ color_t

typedef uint16_t tcgfx::color_t

Defines a basic color type that can be used with RGB() macro regardless of the color depth.

Enumeration Type Documentation

◆ BorderType

Indicates the type of border that needs to be drawn. It can be either an outline or part of a fill, if it is part of a fill, then it will be applied to the background.

Enumerator
BORD_OUTLINE_SQUARE 

the border represents an outline with 90 degree corners

BORD_FILL_ROUNDED 

the border represents a fill, which will be subtracted from the background

BORD_OUTLINE_ROUNDED 

the border represents an outline with rounded corners, this is hardwired at 3x thickness, EG a 1 pixel border has 3 pixel rounding, and a 2 pixel border has 6 pixel rounding.

Function Documentation

◆ makePadding()

void tcgfx::makePadding ( MenuPadding & padding,
int top,
int right,
int bottom,
int left )
inline

Populate a padding structure with values using the same form as HTML, top, right, bottom, left.

Parameters
paddingreference type of padding
topthe top value
rightthe right value
bottomthe bottom value
leftthe left value