VSF Documented
vsf_tgui_v.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/****************************************************************************
19* Copyright 2020 by Gorgon Meducer (Email:embedded_zhuoran@hotmail.com) *
20* *
21* Licensed under the Apache License, Version 2.0 (the "License"); *
22* you may not use this file except in compliance with the License. *
23* You may obtain a copy of the License at *
24* *
25* http://www.apache.org/licenses/LICENSE-2.0 *
26* *
27* Unless required by applicable law or agreed to in writing, software *
28* distributed under the License is distributed on an "AS IS" BASIS, *
29* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
30* See the License for the specific language governing permissions and *
31* limitations under the License. *
32* *
33****************************************************************************/
34
35#ifndef __VSF_TINY_GUI_V_H__
36#define __VSF_TINY_GUI_V_H__
37
38/*============================ INCLUDES ======================================*/
39#include "../vsf_tgui_cfg.h"
40
41#if VSF_USE_TINY_GUI == ENABLED
42#include "../controls/vsf_tgui_controls.h"
43
44#if VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL == VSF_TGUI_V_TEMPLATE_SIMPLE_VIEW
45# define VSF_TGUI_V_TEMPLATE_HEADER_FILE "./simple_view/vsf_tgui_v_template.h"
46#else
47# undef VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL
48# define VSF_TGUI_CFG_RENDERING_TEMPLATE_SEL VSF_TGUI_V_TEMPLATE_EXAMPLE
49# define VSF_TGUI_V_TEMPLATE_HEADER_FILE "./template/vsf_tgui_v_template.h"
50#endif
51
52#include VSF_TGUI_V_TEMPLATE_HEADER_FILE
53
54/*============================ MACROS ========================================*/
55/*============================ MACROFIED FUNCTIONS ===========================*/
56/*============================ TYPES =========================================*/
57/*============================ GLOBAL VARIABLES ==============================*/
58/*============================ PROTOTYPES ====================================*/
59
60/*
61extern
62void vsf_tgui_location_get_in_sizes_with_align( vsf_tgui_location_t* ptLocation,
63 vsf_tgui_size_t* ptCtrlSize,
64 vsf_tgui_size_t* ptDrawSize,
65 vsf_tgui_align_mode_t tMode);
66*/
67
68extern
70 vsf_tgui_region_t* ptResourceRegion,
72
73
74extern
75vsf_tgui_size_t __vk_tgui_label_v_text_get_size(vsf_tgui_label_t* ptLabel,
76 uint16_t *phwLineCount,
77 uint8_t *pchCharHeight);
78
79extern
81
82
83#endif
84
85#endif
86/* EOF */
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_tgui_common.h:236
Definition vsf_tgui_common.h:231
vsf_tgui_align_mode_t
Definition vsf_tgui_common.h:242
vsf_tgui_size_t __vk_tgui_label_v_text_get_size(vsf_tgui_label_t *ptLabel, uint16_t *phwLineCount, uint8_t *pchCharHeight)
Definition vsf_tgui_sv_label.c:56
vsf_tgui_size_t __vk_tgui_label_v_get_minimal_rendering_size(vsf_tgui_label_t *ptLabel)
Definition vsf_tgui_sv_label.c:90
void vsf_tgui_region_update_with_align(vsf_tgui_region_t *ptDrawRegion, vsf_tgui_region_t *ptResourceRegion, vsf_tgui_align_mode_t tMode)
Definition vsf_tgui_v.c:64