A tiny drawing library. include line draw and bitmap-font draw.bitmap-font is from linux-kernel-source.
Diff: tinydraw.h
- Revision:
- 4:68c16070d1db
- Parent:
- 3:c861edfe5dc1
--- a/tinydraw.h Sat Nov 06 12:29:36 2010 +0000 +++ b/tinydraw.h Sat Nov 06 12:34:54 2010 +0000 @@ -18,21 +18,27 @@ #include "linuxfont/linuxfont.h" +/** FrameBuffer(VRAM) X(Width) size */ #define TD_X_MAX (128) +/** FrameBuffer(VRAM) Y(Width) size */ #define TD_Y_MAX (64) +/** X/Y coordinate range type */ typedef short TD_XY_t; +/* X/Y coordinate type */ typedef struct td_point_s { TD_XY_t x; TD_XY_t y; } TD_POINT_t; +/** color type */ typedef unsigned char TD_COLOR_t; +/** color type (foreground and background pair) */ typedef struct td_color_pair_s { - TD_COLOR_t fore; - TD_COLOR_t back; + TD_COLOR_t fore; /**< foreground */ + TD_COLOR_t back; /**< background */ } TD_COLOR_PAIR_t; /**