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_font.h"
28#include "./vsf_tgui_sv_color.h"
29
30/*============================ MACROS ========================================*/
31
32#ifndef VSF_TGUI_HOR_MAX
33# define VSF_TGUI_HOR_MAX 800
34#endif
35
36#ifndef VSF_TGUI_VER_MAX
37# define VSF_TGUI_VER_MAX 600
38#endif
39
40/*============================ MACROFIED FUNCTIONS ===========================*/
41/*============================ TYPES =========================================*/
42/*============================ GLOBAL VARIABLES ==============================*/
43/*============================ PROTOTYPES ====================================*/
44
45extern
47 vsf_tgui_size_t* size_ptr,
48 vsf_tgui_sv_color_t tColor);
49
50extern
52 vsf_tgui_location_t* font_location_ptr,
53 vsf_tgui_size_t* size_ptr,
54 const uint8_t chFontIndex,
55 uint32_t char_u32,
56 vsf_tgui_sv_color_t tCharColor);
57
58extern
60 vsf_tgui_location_t* tile_ptrLocation,
61 vsf_tgui_size_t* size_ptr,
62 const vsf_tgui_tile_t* tile_ptr,
63 uint_fast8_t trans_rate);
64
65extern
67
68extern
70 uint32_t char_u32,
71 vsf_tgui_location_t* location_ptr);
72
73#endif
74
75#endif
76/* EOF */
unsigned char uint_fast8_t
Definition stdint.h:23
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_tgui_common.h:226
Definition vsf_tgui_common.h:231
Definition vsf_tgui_sv_color.h:84
Definition vsf_tgui_common.h:395
vsf_tgui_size_t vsf_tgui_font_get_size(void *font_ptr, uint32_t char_u32)
uint8_t vsf_tgui_font_get_pixel_color(void *font_ptr, uint32_t char_u32, vsf_tgui_location_t *location_ptr)
void vsf_tgui_sv_port_draw_rect(vsf_tgui_location_t *location_ptr, vsf_tgui_size_t *size_ptr, vsf_tgui_sv_color_t tColor)
void vsf_tgui_sv_port_draw_char(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_sv_color_t tCharColor)
void vsf_tgui_sv_port_draw_root_tile(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)