lv_draw_vbasic.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /**
  2. * @file lv_draw_vbasic.h
  3. *
  4. */
  5. #ifndef LV_DRAW_VBASIC_H
  6. #define LV_DRAW_VBASIC_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /*********************
  11. * INCLUDES
  12. *********************/
  13. #include "../../lv_conf.h"
  14. #if LV_VDB_SIZE != 0
  15. #include "../lv_misc/lv_color.h"
  16. #include "../lv_misc/lv_area.h"
  17. #include "../lv_misc/lv_font.h"
  18. /*********************
  19. * DEFINES
  20. *********************/
  21. /**********************
  22. * TYPEDEFS
  23. **********************/
  24. /**********************
  25. * GLOBAL PROTOTYPES
  26. **********************/
  27. void lv_vpx(lv_coord_t x, lv_coord_t y, const lv_area_t * mask_p, lv_color_t color, lv_opa_t opa);
  28. /**
  29. * Fill an area in the Virtual Display Buffer
  30. * @param cords_p coordinates of the area to fill
  31. * @param mask_p fill only o this mask
  32. * @param color fill color
  33. * @param opa opacity of the area (0..255)
  34. */
  35. void lv_vfill(const lv_area_t * cords_p, const lv_area_t * mask_p,
  36. lv_color_t color, lv_opa_t opa);
  37. /**
  38. * Draw a letter in the Virtual Display Buffer
  39. * @param pos_p left-top coordinate of the latter
  40. * @param mask_p the letter will be drawn only on this area
  41. * @param font_p pointer to font
  42. * @param letter a letter to draw
  43. * @param color color of letter
  44. * @param opa opacity of letter (0..255)
  45. */
  46. void lv_vletter(const lv_point_t * pos_p, const lv_area_t * mask_p,
  47. const lv_font_t * font_p, uint32_t letter,
  48. lv_color_t color, lv_opa_t opa);
  49. /**
  50. * Draw a color map to the display (image)
  51. * @param cords_p coordinates the color map
  52. * @param mask_p the map will drawn only on this area (truncated to VDB area)
  53. * @param map_p pointer to a lv_color_t array
  54. * @param opa opacity of the map
  55. * @param chroma_keyed true: enable transparency of LV_IMG_LV_COLOR_TRANSP color pixels
  56. * @param alpha_byte true: extra alpha byte is inserted for every pixel
  57. * @param recolor mix the pixels with this color
  58. * @param recolor_opa the intense of recoloring
  59. */
  60. void lv_vmap(const lv_area_t * cords_p, const lv_area_t * mask_p,
  61. const uint8_t * map_p, lv_opa_t opa, bool chroma_key, bool alpha_byte,
  62. lv_color_t recolor, lv_opa_t recolor_opa);
  63. /**
  64. * Reallocate 'color_map_tmp' to the new hor. res. size. It is used in 'sw_fill'
  65. */
  66. void lv_vdraw_refresh_temp_arrays(void);
  67. /**********************
  68. * MACROS
  69. **********************/
  70. #endif /*LV_VDB_SIZE != 0*/
  71. #ifdef __cplusplus
  72. } /* extern "C" */
  73. #endif
  74. #endif /*LV_DRAW_RBASIC_H*/