VSF Documented
vsf_tgui_sv_port.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_PORT_H__
19#define __VSF_TINY_GUI_V_PORT_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 "./vsf_tgui_sv_color.h"
28
29/*============================ MACROS ========================================*/
30
31#ifndef VSF_TGUI_HOR_MAX
32# define VSF_TGUI_HOR_MAX 800
33#endif
34
35#ifndef VSF_TGUI_VER_MAX
36# define VSF_TGUI_VER_MAX 600
37#endif
38
39/*============================ MACROFIED FUNCTIONS ===========================*/
40/*============================ TYPES =========================================*/
41/*============================ GLOBAL VARIABLES ==============================*/
42/*============================ PROTOTYPES ====================================*/
43
44extern
45void vsf_tgui_sv_port_draw_rect(vsf_tgui_t* gui_ptr,
46 vsf_tgui_location_t* location_ptr,
47 vsf_tgui_size_t* size_ptr,
48 vsf_tgui_v_color_t tColor);
49
50extern
51void vsf_tgui_sv_port_draw_char(vsf_tgui_t* gui_ptr,
52 vsf_tgui_location_t* location_ptr,
53 vsf_tgui_location_t* font_location_ptr,
54 vsf_tgui_size_t* size_ptr,
55 const uint8_t chFontIndex,
56 uint32_t char_u32,
57 vsf_tgui_v_color_t tCharColor);
58
59extern
60void vsf_tgui_sv_port_draw_root_tile(vsf_tgui_t* gui_ptr,
61 vsf_tgui_location_t* location_ptr,
62 vsf_tgui_location_t* tile_ptrLocation,
63 vsf_tgui_size_t* size_ptr,
64 const vsf_tgui_tile_t* tile_ptr,
65 uint_fast8_t trans_rate,
67 vsf_tgui_v_color_t bg_color);
68
69#endif
70
71#endif
72/* EOF */
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
unsigned char uint_fast8_t
Definition stdint.h:23
Definition vsf_tgui_common.h:265
Definition vsf_tgui_common.h:270
Definition vsf_tgui_sv_color.h:87
Definition vsf_tgui_common.h:438
void vsf_tgui_sv_port_draw_rect(vsf_tgui_t *gui_ptr, vsf_tgui_location_t *location_ptr, vsf_tgui_size_t *size_ptr, vsf_tgui_v_color_t tColor)
Definition vsf_tgui_sv_port.c:135
void vsf_tgui_sv_port_draw_root_tile(vsf_tgui_t *gui_ptr, vsf_tgui_location_t *location_ptr, vsf_tgui_location_t *tile_ptrLocation, vsf_tgui_size_t *size_ptr, const vsf_tgui_tile_t *tile_ptr, uint_fast8_t trans_rate, vsf_tgui_v_color_t color, vsf_tgui_v_color_t bg_color)
Definition vsf_tgui_sv_port.c:200
void vsf_tgui_sv_port_draw_char(vsf_tgui_t *gui_ptr, vsf_tgui_location_t *location_ptr, vsf_tgui_location_t *font_location_ptr, vsf_tgui_size_t *size_ptr, const uint8_t chFontIndex, uint32_t char_u32, vsf_tgui_v_color_t tCharColor)
Definition vsf_tgui_sv_port.c:300
uint32_t color
Definition vsf_sdl2_pixelformat.c:31