tte_main.c File Reference
#include <stdio.h>
#include <stdlib.h>#include <string.h>#include <ctype.h>#include <tonc.h>#include "tonc_tte.h"Functions | |
| void | dummy_drawg (uint gid) |
| void | dummy_erase (int left, int top, int right, int bottom) |
| INLINE char * | eatwhite (const char *str) |
| void | tte_set_context (TTC *tc) |
| Set the master context pointer. | |
| void | tte_set_color_attr (eint type, u16 cattr) |
| Set color attribute of type to cattr. | |
| void | tte_set_color_attrs (const u16 cattrs[]) |
| Load important color attribute data. | |
| void | tte_set_color (eint type, u16 color) |
| Set color attribute of type to cattr. | |
| void | tte_set_colors (const u16 colors[]) |
| Load important color data. | |
| void | tte_init_base (const TFont *font, fnDrawg drawProc, fnErase eraseProc) |
| Base initializer of a TTC. | |
| uint | utf8_decode_char (const char *ptr, char **endptr) |
| Retrieve a single multibyte utf8 character. | |
| char * | tte_cmd_skip (const char *str) |
| Find the string-position after the command. | |
| char * | tte_cmd_next (const char *str) |
| Move to the next command in a sequence. | |
| char * | tte_cmd_default (const char *str) |
| Text command handler. | |
| int | tte_write_ex (int x0, int y0, const char *text, const u16 *cattrs) |
| Extended string writer, with positional and color info. | |
| int | tte_putc (int ch) |
| Plot a single character; does wrapping too. | |
| int | tte_write (const char *text) |
| Render a string. | |
| void | tte_erase_rect (int left, int top, int right, int bottom) |
| Erase a porttion of the screen (ignores margins). | |
| void | tte_erase_screen () |
| Erase the screen (within the margins). | |
| void | tte_erase_line () |
| Erase the whole line (within the margins). | |
| POINT16 | tte_get_text_size (const char *str) |
| Get the size taken up by a string. | |
| void | tte_set_margins (int left, int top, int right, int bottom) |
Variables | |
| TTC | __tte_main_context |
| TTC * | gp_tte_context = &__tte_main_context |
Detailed Description
- Author:
- J Vijn
- Date:
- 20070517 - 20080229
Function Documentation
| char* tte_cmd_next | ( | const char * | str | ) |
Move to the next command in a sequence.
- Returns:
- Position of EOS (\'0'), EOC ('}') or next cmd token (rest)
| char* tte_cmd_skip | ( | const char * | str | ) |
Find the string-position after the command.
- Parameters:
-
str String to check.
- Returns:
- The string-pointer after the current/next command. If there is no command-end, this moves to the end of the string.
Generated on Mon Aug 25 17:03:56 2008 for libtonc by
1.5.3