mikroSDK Reference Manual
lv_draw_sdl_rect.h
Go to the documentation of this file.
1
6#ifndef LV_DRAW_SDL_RECT_H
7#define LV_DRAW_SDL_RECT_H
8
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14/*********************
15 * INCLUDES
16 *********************/
18
19#if LV_USE_GPU_SDL
20
21#include LV_GPU_SDL_INCLUDE_PATH
22
23#include "../lv_draw.h"
24
26
27/*********************
28 * DEFINES
29 *********************/
30
31/**********************
32 * TYPEDEFS
33 **********************/
34
35typedef 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
60SDL_Texture * lv_draw_sdl_rect_bg_frag_obtain(lv_draw_sdl_ctx_t * ctx, lv_coord_t radius);
61
62SDL_Texture * lv_draw_sdl_rect_grad_frag_obtain(lv_draw_sdl_ctx_t * ctx, const lv_grad_dsc_t * grad, lv_coord_t w,
63 lv_coord_t h, lv_coord_t radius);
64
65SDL_Texture * lv_draw_sdl_rect_grad_strip_obtain(lv_draw_sdl_ctx_t * ctx, const lv_grad_dsc_t * grad);
66
67void lv_draw_sdl_rect_bg_frag_draw_corners(lv_draw_sdl_ctx_t * ctx, SDL_Texture * frag, lv_coord_t frag_size,
68 const lv_area_t * coords, const lv_area_t * clip, bool full);
69
70/**********************
71 * MACROS
72 **********************/
73
74#endif /*LV_USE_GPU_SDL*/
75
76#ifdef __cplusplus
77} /*extern "C"*/
78#endif
79
80#endif /*LV_DRAW_SDL_RECT_H*/
Definition lv_area.h:43
Definition lv_style.h:155
Definition lv_img_buf.h:126