Macros for defining new graphic objects

nRF5 SDK v15.0.0

Macros

#define NRF_GFX_POINT (_x, _y)
#define NRF_GFX_LINE (_x_0, _y_0, _x_1, _y_1, _thickness)
#define NRF_GFX_CIRCLE (_x, _y, _radius)
#define NRF_GFX_RECT (_x, _y, _width, _height)

Detailed Description

Macro Definition Documentation

#define NRF_GFX_CIRCLE ( _x,
_y,
_radius
)
Value:
{ \
.x = (_x), \
.y = (_y), \
.r = (_radius) \
}
#define NRF_GFX_LINE ( _x_0,
_y_0,
_x_1,
_y_1,
_thickness
)
Value:
{ \
.x_start = (_x_0), \
.y_start = (_y_0), \
.x_end = (_x_1), \
.y_end = (_y_1), \
.thickness = (_thickness) \
}
#define NRF_GFX_POINT ( _x,
_y
)
Value:
{ \
.x = (_x), \
.y = (_y) \
}
#define NRF_GFX_RECT ( _x,
_y,
_width,
_height
)
Value:
{ \
.x = (_x), \
.y = (_y), \
.width = (_width), \
.height = (_height) \
}