Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: DisplayDefs.h
- Revision:
- 177:0ff83f026bb6
- Parent:
- 167:8aa3fb2a5a31
- Child:
- 178:f21d24431d5a
diff -r 4ab96d33a8ec -r 0ff83f026bb6 DisplayDefs.h --- a/DisplayDefs.h Sun Mar 24 14:49:49 2019 +0000 +++ b/DisplayDefs.h Thu Jul 11 15:24:02 2019 +0000 @@ -71,11 +71,13 @@ /// type that manages x,y pairs /// -typedef struct +struct point_t { loc_t x; ///< x value in the point loc_t y; ///< y value in the point -} point_t; + point_t(loc_t arg_x = 0, loc_t arg_y = 0) : + x(arg_x), y(arg_y) {} +}; /// Data type that manages rectangles, which are pairs of points. ///