acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

lv_draw_sdl_rect.h (1435B)

      1 /**
      2  * @file lv_draw_sdl_rect.h
      3  *
      4  */
      5 
      6 #ifndef LV_DRAW_SDL_RECT_H
      7 #define LV_DRAW_SDL_RECT_H
      8 
      9 
     10 #ifdef __cplusplus
     11 extern "C" {
     12 #endif
     13 
     14 /*********************
     15  *      INCLUDES
     16  *********************/
     17 #include "../../lv_conf_internal.h"
     18 
     19 #if LV_USE_GPU_SDL
     20 
     21 #include LV_GPU_SDL_INCLUDE_PATH
     22 
     23 #include "../lv_draw.h"
     24 
     25 #include "lv_draw_sdl_texture_cache.h"
     26 
     27 /*********************
     28  *      DEFINES
     29  *********************/
     30 
     31 /**********************
     32  *      TYPEDEFS
     33  **********************/
     34 
     35 typedef struct lv_draw_sdl_rect_header_t {
     36     lv_img_header_t base;
     37     SDL_Rect rect;
     38 } lv_draw_sdl_rect_header_t;
     39 
     40 /**********************
     41  * GLOBAL PROTOTYPES
     42  **********************/
     43 
     44 /*======================
     45  * Add/remove functions
     46  *=====================*/
     47 
     48 /*=====================
     49  * Setter functions
     50  *====================*/
     51 
     52 /*=====================
     53  * Getter functions
     54  *====================*/
     55 
     56 /*=====================
     57  * Other functions
     58  *====================*/
     59 
     60 SDL_Texture * lv_draw_sdl_rect_bg_frag_obtain(lv_draw_sdl_ctx_t * ctx, lv_coord_t radius);
     61 
     62 void lv_draw_sdl_rect_bg_frag_draw_corners(lv_draw_sdl_ctx_t * ctx, SDL_Texture * frag, lv_coord_t frag_size,
     63                                            const lv_area_t * coords, const lv_area_t * clip, bool full);
     64 
     65 /**********************
     66  *      MACROS
     67  **********************/
     68 
     69 #endif /*LV_USE_GPU_SDL*/
     70 
     71 #ifdef __cplusplus
     72 } /*extern "C"*/
     73 #endif
     74 
     75 #endif /*LV_DRAW_SDL_RECT_H*/