46 #ifndef __D4D_STRING_H
47 #define __D4D_STRING_H
62 #ifndef D4D_STR_TABLE_MAX_CNT
63 #define D4D_STR_TABLE_MAX_CNT 4
72 #define D4D_TXT_PRTY_ALIGN_H_MASK D4D_ALIGN_H_MASK
73 #define D4D_TXT_PRTY_ALIGN_H_LEFT_MASK D4D_ALIGN_H_LEFT_MASK
74 #define D4D_TXT_PRTY_ALIGN_H_RIGHT_MASK D4D_ALIGN_H_RIGHT_MASK
75 #define D4D_TXT_PRTY_ALIGN_H_CENTER_MASK D4D_ALIGN_H_CENTER_MASK
77 #define D4D_TXT_PRTY_ALIGN_V_MASK D4D_ALIGN_V_MASK
78 #define D4D_TXT_PRTY_ALIGN_V_TOP_MASK D4D_ALIGN_V_TOP_MASK
79 #define D4D_TXT_PRTY_ALIGN_V_BOTTOM_MASK D4D_ALIGN_V_BOTTOM_MASK
80 #define D4D_TXT_PRTY_ALIGN_V_CENTER_MASK D4D_ALIGN_V_CENTER_MASK
141 #define D4D_DECLARE_STRING_TABLE_BEGIN D4D_DECLARE_USR_STRING_TABLE_BEGIN(d4d_StringTable)
155 #define D4D_DECLARE_USR_STRING_TABLE_BEGIN(name) const D4D_STRING_TABLE name[] = {
170 #define D4D_DECLARE_STRING(stringId, string_table) \
171 {stringId, (D4D_TCHAR**)string_table, (sizeof(string_table) / sizeof(D4D_TCHAR*))}, // string info will be replaced by string descriptor
184 #define D4D_DECLARE_STRING_TABLE_END {0, NULL, 0} };
198 #define D4D_DECLARE_TAB_TABLE_BEGIN(name) const D4D_COOR name[] = {
212 #define D4D_DECLARE_TAB(tab) tab, // tab space in pixels
225 #define D4D_DECLARE_TAB_TABLE_END 0 };
236 #define D4D_DEFSTR(str) L##str
246 #define D4D_DEFSTR(str) str
265 #define D4D_IsDigit(x) (((x)>= '0') && ((x)<= '9'))
271 #define D4D_StringTable_GetCount(x) (sizeof(x) / sizeof(D4D_TCHAR*))
284 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
D4D_INDEX buffSize
size of text buffer array
D4D_WCHAR D4D_TCHAR
Type definition of eGUI character (it depends on UNICODE setting if this is D4D_CHAR or D4D_WCHAR)...
D4D_TEXT_PROPERTIES text_properties
Text properties structure.
D4D_INDEX printLen
Length of string that should be used (printed).
The string type. This structure contains all properties about string in eGUI.
D4D_TCHAR * D4D_GetInternalStringPointer(const D4D_TCHAR *originTxt)
The function gets the real internal pointer to string.
D4D_FONT fontId
index of used font
D4D Driver fonts header file.
struct D4D_STR_PROPERTIES_S D4D_STR_PROPERTIES
The string properties type. This structure contains as Font as Text properties.
The string properties type. This structure contains as Font as Text properties.
Byte D4D_TEXT_PROPERTIES
The string text properties type. The masks are described here D4D BASE Defines masks of aligment prop...
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
const D4D_STRING_TABLE d4d_StringTable[]
struct D4D_STRING_S D4D_STRING
The string type. This structure contains all properties about string in eGUI.
D4D_TCHAR * pText
pointer to text array
unsigned long LWord
Type definition of LWord (unsigned 32-bit).
D4D_STR_PROPERTIES * str_properties
pointer to string properties
LWord D4D_GetCurrentStringId(void)
LWord D4D_INDEX
Type definition of eGUI general index variables.
void D4D_LCD_PrintStr(D4D_PRINT_DESC *p_StrDes)
void D4D_ChangeStringTable(LWord stringId)
D4D_FONT_PROPERTIES font_properties
Font properties structure.
D4D_INDEX printOff
Offset of string that should be used (printed).