49 #ifndef GFX_H_INCLUDED 50 #define GFX_H_INCLUDED 59 # define CONF_GFX_USE_CLIPPING 99 #define GFX_COLOR_BLACK GFX_COLOR( 0, 0, 0) 100 #define GFX_COLOR_WHITE GFX_COLOR(255, 255, 255) 101 #define GFX_COLOR_GRAY GFX_COLOR(128, 128, 128) 102 #define GFX_COLOR_LT_GRAY GFX_COLOR(220, 220, 220) 103 #define GFX_COLOR_RED GFX_COLOR(255, 0, 0) 104 #define GFX_COLOR_DK_RED GFX_COLOR(128, 0, 0) 105 #define GFX_COLOR_GREEN GFX_COLOR( 0, 255, 0) 106 #define GFX_COLOR_DK_GREEN GFX_COLOR( 0, 128, 0) 107 #define GFX_COLOR_BLUE GFX_COLOR( 0, 0, 255) 108 #define GFX_COLOR_DK_BLUE GFX_COLOR( 0, 0, 128) 109 #define GFX_COLOR_MAGENTA GFX_COLOR(255, 0, 255) 110 #define GFX_COLOR_DK_MAGENTA GFX_COLOR(128, 0, 128) 111 #define GFX_COLOR_YELLOW GFX_COLOR(255, 255, 0) 112 #define GFX_COLOR_DK_YELLOW GFX_COLOR(128, 128, 0) 113 #define GFX_COLOR_CYAN GFX_COLOR( 0, 255, 255) 114 #define GFX_COLOR_DK_CYAN GFX_COLOR( 0, 128, 128) 124 #define GFX_OCTANT0 (1 << 0) 127 #define GFX_OCTANT1 (1 << 1) 130 #define GFX_OCTANT2 (1 << 2) 133 #define GFX_OCTANT3 (1 << 3) 136 #define GFX_OCTANT4 (1 << 4) 139 #define GFX_OCTANT5 (1 << 5) 142 #define GFX_OCTANT6 (1 << 6) 145 #define GFX_OCTANT7 (1 << 7) 148 #define GFX_QUADRANT0 (GFX_OCTANT0 | GFX_OCTANT1) 151 #define GFX_QUADRANT1 (GFX_OCTANT2 | GFX_OCTANT3) 154 #define GFX_QUADRANT2 (GFX_OCTANT4 | GFX_OCTANT5) 157 #define GFX_QUADRANT3 (GFX_OCTANT6 | GFX_OCTANT7) 160 #define GFX_LEFTHALF (GFX_QUADRANT3 | GFX_QUADRANT0) 163 #define GFX_TOPHALF (GFX_QUADRANT0 | GFX_QUADRANT1) 166 #define GFX_RIGHTHALF (GFX_QUADRANT1 | GFX_QUADRANT2) 169 #define GFX_BOTTOMHALF (GFX_QUADRANT2 | GFX_QUADRANT3) 172 #define GFX_WHOLE 0xFF 185 #define GFX_SWITCH_XY 4 201 #if defined(CONF_GFX_USE_CLIPPING) || defined(__DOXYGEN__) 212 #if defined(__DOXYGEN__) Storage structure for bitmap pixel data and metadata.
Generic graphic primitive routines.
#define gfx_draw_line_pixel(x, y, color)
#define gfx_put_bitmap(bmp, map_x, map_y, x, y, width, height)
#define gfx_set_top_left_limit(x, y)
#define gfx_set_bottom_right_limit(x, y)
Commonly used includes, types and macros.
#define gfx_draw_pixel(x, y, color)
#define gfx_get_pixel(x, y)
#define gfx_set_ext_handler(ext_draw_handler)
Graphic library configured for the SDT028ATFT LCD panel using the ILI9341 display controller...
void(* gfx_ext_draw_handler_t)(struct gfx_bitmap const *bmp, gfx_coord_t map_x, gfx_coord_t map_y, gfx_coord_t x, gfx_coord_t y)
Function pointer type for external bitmap draw handlers.
#define gfx_duplicate_pixel(color, count)
#define gfx_copy_progmem_pixels_to_screen(pixels, count, swap)
ili9341_coord_t gfx_coord_t
Data type representing a coordinate on the screen.
#define gfx_copy_pixels_from_screen(pixels, count)
#define gfx_copy_pixels_to_screen(pixels, count)
#define gfx_set_limits(x1, y1, x2, y2)
#define gfx_draw_bitmap(bmp, x, y)
#define gfx_draw_bitmap_tiled(bmp, x1, y1, x2, y2, tile_origin_x, tile_origin_y)
ili9341_color_t gfx_color_t
Data type for color values native to the display.
#define gfx_set_orientation(flags)
#define gfx_color(r, g, b)