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#include "../vsf_tgui_cfg.h"
23
24#if VSF_USE_TINY_GUI == ENABLED
25/*============================ MACROS ========================================*/
26#ifndef VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT
27# define VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT ENABLED
28#endif
29
30#ifndef VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT_ALIGN
31# define VSF_TGUI_CFG_SUPPORT_SV_MULTI_LINE_TEXT_ALIGN ENABLED
32#endif
33
34/*============================ MACROFIED FUNCTIONS ===========================*/
35/*============================ TYPES =========================================*/
36/*============================ GLOBAL VARIABLES ==============================*/
37/*============================ PROTOTYPES ====================================*/
38
39#if VSF_TGUI_CFG_SAFE_STRING_MODE == ENABLED
40extern
42 int16_t *piOffSet,
43 vsf_tgui_string_t* ptStringOut);
44#endif
45
46extern
48 vsf_tgui_text_info_t *string_info_ptr,
49 uint16_t *line_count_ptr,
50 uint8_t *char_height_ptr);
51
52extern
53uint32_t vsf_tgui_text_get_next(const char* pchString, size_t* ptSize);
54
55#endif
56
57#endif
58/* 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:226
Definition vsf_tgui_common.h:270
Definition vsf_tgui_common.h:346
Definition vsf_tgui_common.h:365
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)