Generic graphic primitive routines.
This files includes the correct header files for the graphics service
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Variables | |
static gfx_ext_draw_handler_t | gfx_ext_draw_func |
External bitmap draw interface handler. More... | |
gfx_coord_t gfx_get_height | ( | void | ) |
Return the current height of the screen.
Return the current height of the screen for the current orientation. Screen can be rotated runtime on supported displays with gfx_set_orientation.
References gfx_height.
Referenced by main().
gfx_coord_t gfx_get_width | ( | void | ) |
Return the current width of the screen.
Return the current width of the screen for the current orientation. Screen can be rotated runtime on supported displays with gfx_set_orientation.
References gfx_width.
Referenced by main().
void gfx_set_clipping | ( | gfx_coord_t | min_x, |
gfx_coord_t | min_y, | ||
gfx_coord_t | max_x, | ||
gfx_coord_t | max_y | ||
) |
Set the clipping region.
Set the clipping region for all subsequent graphics operations. Nothing will be drawn outside the clipping region. Clipping is handled in software, and is enabled with CONF_GFX_USE_CLIPPING.
min_x | Left edge of region. |
min_y | Top edge of region. |
max_x | Right edge of region. |
max_y | Bottom edge of region. |
References gfx_height, gfx_max_x, gfx_max_y, gfx_min_x, gfx_min_y, and gfx_width.
Referenced by gfx_ili9325_init(), gfx_ili9325_set_orientation(), gfx_ili9341_init(), gfx_ili9341_set_orientation(), gfx_ili93xx_init(), gfx_ili93xx_set_orientation(), gfx_ili9488_init(), and gfx_ili9488_set_orientation().
|
static |
External bitmap draw interface handler.
Referenced by gfx_generic_put_bitmap(), and gfx_generic_set_ext_handler().