Select one of the symbols to view example projects that use it.
 
Outline
#include <stdarg.h>
#include <touchgfx/Texts.hpp>
#include <touchgfx/hal/HAL.hpp>
#include <touchgfx/TypedText.hpp>
#include <texts/TypedTextDatabase.hpp>
#include <touchgfx/lcd/LCD.hpp>
#include <touchgfx/TextProvider.hpp>
touchgfx::Font::getStringWidthFunction
touchgfx::LCD::drawStringFunction
touchgfx::TextProvider::unicodeConverterInitFunction
touchgfx::TextProvider::unicodeConverterFunction
languagesArray
touchgfx::Texts::currentLanguage
touchgfx::Texts::currentLanguagePtr
touchgfx::Texts::setLanguage(touchgfx::LanguageId)
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXGui/generated/texts/src/Texts.cpp
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#include <stdarg.h> #include <touchgfx/Texts.hpp> #include <touchgfx/hal/HAL.hpp> #include <touchgfx/TypedText.hpp> #include <texts/TypedTextDatabase.hpp> #include <touchgfx/lcd/LCD.hpp> #include <touchgfx/TextProvider.hpp> 7 includes #ifndef NO_USING_NAMESPACE_TOUCHGFX using namespace touchgfx; #endif touchgfx::Font::StringWidthFunctionPointer touchgfx::Font::getStringWidthFunction = &touchgfx::Font::getStringWidthLTR; touchgfx::LCD::DrawStringFunctionPointer touchgfx::LCD::drawStringFunction = &touchgfx::LCD::drawStringLTR; touchgfx::TextProvider::UnicodeConverterInitFunctionPointer touchgfx::TextProvider::unicodeConverterInitFunction = static_cast<touchgfx::TextProvider::UnicodeConverterInitFunctionPointer>(0); touchgfx::TextProvider::UnicodeConverterFunctionPointer touchgfx::TextProvider::unicodeConverterFunction = static_cast<touchgfx::TextProvider::UnicodeConverterFunctionPointer>(0); extern const touchgfx::Unicode::UnicodeChar* const textsGb[]; TEXT_LOCATION_FLASH_PRAGMA const touchgfx::Unicode::UnicodeChar* const* const languagesArray[] TEXT_LOCATION_FLASH_ATTRIBUTE = { textsGb ...}; touchgfx::LanguageId touchgfx::Texts::currentLanguage = static_cast<touchgfx::LanguageId>(0); const touchgfx::Unicode::UnicodeChar* const* touchgfx::Texts::currentLanguagePtr = languagesArray[currentLanguage]; void touchgfx::Texts::setLanguage(touchgfx::LanguageId id) { currentLanguage = id; currentLanguagePtr = languagesArray[currentLanguage]; touchgfx::TypedText::registerTypedTextDatabase(TypedTextDatabase::getInstance(currentLanguage), TypedTextDatabase::getFonts(), TypedTextDatabase::getInstanceSize()); }{ ... }