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.
Fork of RA8875 by
Diff: DisplayDefs.h
- Revision:
- 37:f19b7e7449dc
- Parent:
- 32:0e4f2ae512e2
- Child:
- 42:7cbdfd2bbfc5
--- a/DisplayDefs.h Sat Jan 25 00:00:02 2014 +0000 +++ b/DisplayDefs.h Sat Jan 25 19:47:33 2014 +0000 @@ -17,11 +17,22 @@ not_enough_ram, ///< could not allocate ram for scanline } RetCode_t; +/// type that manages locations, which is typically an x or y pixel location, +/// which can range from -N to +N (even if the screen is 0 to +n). @see textloc_t. +typedef int16_t loc_t; + +/// type that manages text locations, which are row or column values in +/// units of character, not pixel. @see loc_t. +typedef uint16_t textloc_t; + +/// type that manages dimensions of width or height, which range from 0 to N. +typedef uint16_t dim_t; + /// type that manages x,y pairs typedef struct { - uint16_t x; ///< x value in the point - uint16_t y; ///< y value in the point + loc_t x; ///< x value in the point + loc_t y; ///< y value in the point } point_t; /// color type definition to let the compiler help keep us honest.