VSF Documented
vsf_tgui_text.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_TEXT_H__
19#define __VSF_TINY_GUI_V_TEXT_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../vsf_tgui_cfg.h"
24
25#if VSF_USE_TINY_GUI == ENABLED
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*============================ MACROS ========================================*/
32
33#ifndef VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT
34# define VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT ENABLED
35#endif
36
37#ifndef VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT_ALIGN
38# define VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT_ALIGN ENABLED
39#endif
40
41/*============================ MACROFIED FUNCTIONS ===========================*/
42/*============================ TYPES =========================================*/
43/*============================ GLOBAL VARIABLES ==============================*/
44/*============================ PROTOTYPES ====================================*/
45
46#if VSF_TGUI_CFG_SAFE_STRING_MODE == ENABLED
47extern
49 int16_t *piOffSet,
50 vsf_tgui_string_t* ptStringOut);
51#endif
52
53extern
55 vsf_tgui_text_info_t *string_info_ptr,
56 uint16_t *line_count_ptr,
57 uint8_t *char_height_ptr);
58
59extern
60uint32_t vsf_tgui_text_get_next(const char* pchString, size_t* ptSize);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif
67#endif
68/* EOF */
signed short int16_t
Definition lvgl.h:42
unsigned short uint16_t
Definition lvgl.h:41
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
uint8_t font_index
Definition vsf_tgui_v_type.h:231
Definition vsf_tgui_common.h:276
Definition vsf_tgui_common.h:352
Definition vsf_tgui_common.h:371
vsf_tgui_string_t * vsf_tgui_text_get_line(vsf_tgui_string_t *ptStringIn, int16_t *piOffSet, vsf_tgui_string_t *ptStringOut)
Definition vsf_tgui_text.c:138
vsf_tgui_size_t vsf_tgui_text_get_size(const uint8_t font_index, vsf_tgui_text_info_t *string_info_ptr, uint16_t *line_count_ptr, uint8_t *char_height_ptr)
Definition vsf_tgui_text.c:250
uint32_t vsf_tgui_text_get_next(const char *pchString, size_t *ptSize)