00001
00039 #ifndef GFX_HX8347A_H_INCLUDED
00040 #define GFX_HX8347A_H_INCLUDED
00041
00047
00048
00049
00050
00055 #define gfx_draw_horizontal_line(x, y, length, color) \
00056 gfx_generic_draw_horizontal_line(x, y, length, color)
00057
00062 #define gfx_draw_vertical_line(x, y, length, color) \
00063 gfx_generic_draw_vertical_line(x, y, length, color)
00064
00069 #define gfx_draw_line(x1, y1, x2, y2, color) \
00070 gfx_generic_draw_line(x1, y1, x2, y2, color)
00071
00076 #define gfx_draw_rect(x, y, width, height, color) \
00077 gfx_generic_draw_rect(x, y, width, height, color)
00078
00083 #define gfx_draw_filled_rect(x, y, width, height, color) \
00084 gfx_generic_draw_filled_rect(x, y, width, height, color)
00085
00090 #define gfx_draw_circle(x, y, radius, color, octant_mask) \
00091 gfx_generic_draw_circle(x, y, radius, color, octant_mask)
00092
00097 #define gfx_draw_filled_circle(x, y, radius, color, quadrant_mask) \
00098 gfx_generic_draw_filled_circle(x, y, radius, color, quadrant_mask)
00099
00104 #define gfx_get_pixmap(pixmap, map_width, map_x, map_y, x, y, width, height) \
00105 gfx_generic_get_pixmap(pixmap, map_width, map_x, map_y, x, y, width, \
00106 height)
00107
00112 #define gfx_put_pixmap(pixmap, map_width, map_x, map_y, x, y, width, height) \
00113 gfx_generic_put_pixmap(pixmap, map_width, map_x, map_y, x, y, width, \
00114 height)
00115
00116
00117 typedef uint16_t gfx_color_t;
00118 typedef int16_t gfx_coord_t;
00119
00120 #define GFX_COLOR(r, g, b) \
00121 ((((uint16_t)r) & 0x00f8) | \
00122 ((((uint16_t)b) << 5) & 0x1f00) | \
00123 ((((uint16_t)g) >> 5) & 0x0007) | \
00124 ((((uint16_t)g) << 11) & 0xe000))
00125
00130 #define GFX_COLOR_INVALID GFX_COLOR(1,2,3)
00131
00132 #define GFX_COLOR_TRANSPARENT GFX_COLOR(254,0,0)
00133
00135
00136 #endif // GFX_HX8347A_H_INCLUDED