VSF Documented
vsf_tgui_sv_draw.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_TINY_GUI_V_DRAW_H__
19#define __VSF_TINY_GUI_V_DRAW_H__
20
21/*============================ INCLUDES ======================================*/
22#include "../../vsf_tgui_cfg.h"
23
24#if VSF_USE_TINY_GUI == ENABLED \
25 && VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL == VSF_TGUI_V_TEMPLATE_SIMPLE_VIEW
26
27#include "../../controls/vsf_tgui_controls.h"
29
30
31/*============================ MACROS ========================================*/
32/*============================ MACROFIED FUNCTIONS ===========================*/
33/*============================ TYPES =========================================*/
34/*============================ GLOBAL VARIABLES ==============================*/
35/*============================ PROTOTYPES ====================================*/
36
37extern void vsf_tgui_control_v_draw_rect(vsf_tgui_t* gui_ptr,
40 const vsf_tgui_region_t* ptRectRegion,
42
43extern void vsf_tgui_control_v_draw_tile(vsf_tgui_t* gui_ptr,
46 const vsf_tgui_tile_t* tile_ptr,
47 const vsf_tgui_align_mode_t mode,
48 const uint8_t trans_rate,
49 vsf_tgui_region_t* ptPlacedRegion,
51 vsf_tgui_v_color_t bg_color);
52
53extern void vsf_tgui_control_v_draw_text(vsf_tgui_t* gui_ptr,
56 vsf_tgui_text_info_t *ptStringInfo,
57 const uint8_t font_index,
59 const vsf_tgui_align_mode_t mode);
60
61#endif
62
63#endif
64/* EOF */
unsigned char uint8_t
Definition lvgl.h:40
uint8_t font_index
Definition vsf_tgui_v_type.h:226
Definition vsf_tgui_common.h:275
Definition vsf_tgui_sv_color.h:87
Definition vsf_tgui_common.h:365
Definition vsf_tgui_common.h:438
uint32_t color
Definition vsf_sdl2_pixelformat.c:31
vsf_tgui_align_mode_t
Definition vsf_tgui_common.h:281
struct vsf_tgui_control_t vsf_tgui_control_t
Definition vsf_tgui_common.h:549
const vsf_tgui_control_t * control_ptr
Definition vsf_tgui_scguiv_port.h:87
const vsf_tgui_control_t const vsf_tgui_region_t * dirty_region_ptr
Definition vsf_tgui_scguiv_port.h:88
void vsf_tgui_control_v_draw_text(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *control_ptr, const vsf_tgui_region_t *dirty_region_ptr, vsf_tgui_text_info_t *ptStringInfo, const uint8_t font_index, const vsf_tgui_v_color_t color, const vsf_tgui_align_mode_t mode)
Definition vsf_tgui_scguiv_port.c:292
void vsf_tgui_control_v_draw_rect(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *control_ptr, const vsf_tgui_region_t *dirty_region_ptr, const vsf_tgui_region_t *ptRectRegion, const vsf_tgui_v_color_t color)
Definition vsf_tgui_scguiv_port.c:273
void vsf_tgui_control_v_draw_tile(vsf_tgui_t *gui_ptr, const vsf_tgui_control_t *control_ptr, const vsf_tgui_region_t *dirty_region_ptr, const vsf_tgui_tile_t *tile_ptr, const vsf_tgui_align_mode_t mode, const uint8_t trans_rate, vsf_tgui_region_t *ptPlacedRegion, vsf_tgui_v_color_t color, vsf_tgui_v_color_t bg_color)
Definition vsf_tgui_scguiv_port.c:324