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_string_t* ptString,
49 uint16_t *phwLineCount,
50 uint8_t *pchCharHeight,
51 int_fast8_t chInterlineSpace);
52
53extern
54uint32_t vsf_tgui_text_get_next(const char* pchString, size_t* ptSize);
55
56#endif
57
58#endif
59/* EOF */
unsigned short uint16_t
Definition stdint.h:7
unsigned uint32_t
Definition stdint.h:9
short int16_t
Definition stdint.h:6
unsigned char uint8_t
Definition stdint.h:5
char int_fast8_t
Definition stdint.h:22
Definition vsf_tgui_common.h:231
Definition vsf_tgui_common.h:307
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 chFontIndex, vsf_tgui_string_t *ptString, uint16_t *phwLineCount, uint8_t *pchCharHeight, int_fast8_t chInterlineSpace)
Definition vsf_tgui_text.c:186
uint32_t vsf_tgui_text_get_next(const char *pchString, size_t *ptSize)