Functions | |
D4D_TCHAR * | D4D_GetInternalStringPointer (const D4D_TCHAR *originTxt) |
The function gets the real internal pointer to string. More... | |
Byte | D4D_SprintDecU32 (LWord val, D4D_TCHAR *pText, D4D_TCHAR fill) |
The function convert decimal unsigned 32 bit number to string. More... | |
Byte | D4D_SprintDecS32 (sLWord val, D4D_TCHAR *pText, D4D_TCHAR fill) |
The function convert decimal signed 32 bit number to string. More... | |
Byte | D4D_SprintDecU16 (Word val, D4D_TCHAR *pText, D4D_TCHAR fill) |
The function convert decimal unsigned 16 bit number to string. More... | |
Byte | D4D_SprintDecS16 (sWord val, D4D_TCHAR *pText, D4D_TCHAR fill) |
The function convert decimal signed 16 bit number to string. More... | |
Byte | D4D_SprintDecU8 (Byte val, D4D_TCHAR *pText, D4D_TCHAR fill) |
The function convert decimal unsigned 8 bit number to string. More... | |
Byte | D4D_SprintDecS8 (sByte val, D4D_TCHAR *pText, D4D_TCHAR fill) |
The function convert decimal signed 8 bit number to string. More... | |
D4D_INDEX | D4D_GetTextLength (D4D_TCHAR *pText) |
The function returns lenght of text. More... | |
D4D_COOR | D4D_GetTextWidth (D4D_FONT ix, D4D_TCHAR *pText) |
The function returns width of text in pixels. More... | |
D4D_COOR | D4D_GetTextBuffWidthTab (D4D_STRING *text_buffer, D4D_TAB *pTab) |
The function returns width of text in pixels, also with tab table. More... | |
D4D_INDEX | D4D_GetTextMaxLength (D4D_STRING *pString, D4D_COOR maxWidth) |
The function find out the maximal text length that fits to maximal pixel width. More... | |
void | D4D_SetText (D4D_OBJECT_PTR pObject, D4D_TCHAR *pText) |
The function change the text in main object text buffer. More... | |
This section specifies the exact usage for each API function.
The function gets the real internal pointer to string.
originTxt | - the defined string in application |
Definition at line 108 of file d4d_string.c.
D4D_COOR D4D_GetTextBuffWidthTab | ( | D4D_STRING * | text_buffer, |
D4D_TAB * | pTab | ||
) |
The function returns width of text in pixels, also with tab table.
text_buffer | - pointer to full string descriptor (MUST be full filled) |
pTab | - pointer to teb table |
Definition at line 403 of file d4d_string.c.
The function returns lenght of text.
pText | - pointer to text |
Definition at line 329 of file d4d_string.c.
D4D_INDEX D4D_GetTextMaxLength | ( | D4D_STRING * | pString, |
D4D_COOR | maxWidth | ||
) |
The function find out the maximal text length that fits to maximal pixel width.
pString | - pointer to full string descriptor (MUST be full filled) |
maxWidth | - maximal width where the text should fits |
Definition at line 492 of file d4d_string.c.
The function returns width of text in pixels.
ix | - font index |
pText | - pointer to text |
Definition at line 357 of file d4d_string.c.
void D4D_SetText | ( | D4D_OBJECT_PTR | pObject, |
D4D_TCHAR * | pText | ||
) |
The function change the text in main object text buffer.
pObject | - pointer to object |
pText | - pointer to new string |
Definition at line 573 of file d4d_string.c.
The function convert decimal signed 16 bit number to string.
val | - the input numerical value |
pText | - pointer to output text buffer |
fill | - the fill character for non number characters (before number) |
Definition at line 242 of file d4d_string.c.
The function convert decimal signed 32 bit number to string.
val | - the input numerical value |
pText | - pointer to output text buffer |
fill | - the fill character for non number characters (before number) |
Definition at line 181 of file d4d_string.c.
The function convert decimal signed 8 bit number to string.
val | - the input numerical value |
pText | - pointer to output text buffer |
fill | - the fill character for non number characters (before number) |
Definition at line 311 of file d4d_string.c.
The function convert decimal unsigned 16 bit number to string.
val | - the input numerical value |
pText | - pointer to output text buffer |
fill | - the fill character for non number characters (before number) |
Definition at line 201 of file d4d_string.c.
The function convert decimal unsigned 32 bit number to string.
val | - the input numerical value |
pText | - pointer to output text buffer |
fill | - the fill character for non number characters (before number) |
Definition at line 140 of file d4d_string.c.
The function convert decimal unsigned 8 bit number to string.
val | - the input numerical value |
pText | - pointer to output text buffer |
fill | - the fill character for non number characters (before number) |
Definition at line 262 of file d4d_string.c.