Go to the source code of this file.
|
static void | text_screen_init (void) |
|
static void | text_window_init (uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint16_t base) |
|
static void | text_set_mode (uint16_t value) |
|
static uint16_t | text_get_mode (void) |
|
static void | text_put_char (uint8_t x, uint8_t y, uint16_t ch) |
|
void | text_put_string (uint8_t x, uint8_t y, const char __far *str) |
|
void | text_put_substring (uint8_t x, uint8_t y, const char __far *str, uint16_t length) |
|
static void | text_put_numeric (uint8_t x, uint8_t y, uint8_t width, uint8_t flags, uint16_t value) |
|
static void | text_fill_char (uint8_t x, uint8_t y, uint16_t length, uint16_t ch) |
|
static void | text_set_palette (uint16_t index) |
|
static uint16_t | text_get_palette (void) |
|
void | text_set_ank_font (uint8_t start, uint8_t depth, uint16_t count, const void __far *data) |
|
void | text_get_fontdata (uint16_t ch, void __far *data) |
|
static void | text_set_screen (uint8_t id) |
|
static uint8_t | text_get_screen (void) |
|
static void | cursor_display (uint8_t value) |
|
static uint8_t | cursor_status (void) |
|
static void | cursor_set_location (uint8_t x, uint8_t y, uint8_t width, uint8_t height) |
|
static uint32_t | cursor_get_location (void) |
|
static void | cursor_set_type (uint8_t palette, uint8_t rate) |
|
static uint16_t | cursor_get_type (void) |
|
◆ NUM_ALIGN_LEFT
#define NUM_ALIGN_LEFT 0x04 |
◆ NUM_ALIGN_RIGHT
#define NUM_ALIGN_RIGHT 0x00 |
◆ NUM_HEXA
◆ NUM_PADSPACE
#define NUM_PADSPACE 0x00 |
◆ NUM_PADZERO
◆ NUM_SIGNED
◆ NUM_STORE
◆ TEXT_MODE_ANK
◆ TEXT_MODE_ANK_SJIS
#define TEXT_MODE_ANK_SJIS 1 |
◆ TEXT_MODE_SJIS
◆ TEXT_SCREEN_HEIGHT
#define TEXT_SCREEN_HEIGHT 18 |
◆ TEXT_SCREEN_WIDTH
#define TEXT_SCREEN_WIDTH 28 |
◆ cursor_display()
static void cursor_display |
( |
uint8_t | value | ) |
|
|
inlinestatic |
- Parameters
-
value | Cursor status (0 - disabled, 1 - enabled) |
Definition at line 208 of file text.h.
◆ cursor_get_location()
static uint32_t cursor_get_location |
( |
void | | ) |
|
|
inlinestatic |
◆ cursor_get_type()
static uint16_t cursor_get_type |
( |
void | | ) |
|
|
inlinestatic |
◆ cursor_set_location()
static void cursor_set_location |
( |
uint8_t | x, |
|
|
uint8_t | y, |
|
|
uint8_t | width, |
|
|
uint8_t | height ) |
|
inlinestatic |
◆ cursor_set_type()
static void cursor_set_type |
( |
uint8_t | palette, |
|
|
uint8_t | rate ) |
|
inlinestatic |
- Parameters
-
palette | Palette index used by cursor area when visible |
rate | Blinking rate, in frames; 0 - always visible |
Definition at line 257 of file text.h.
◆ cursor_status()
static uint8_t cursor_status |
( |
void | | ) |
|
|
inlinestatic |
- Returns
- Cursor status (bit 0 - enabled?, bit 1 - currently visible?)
Definition at line 221 of file text.h.
◆ text_fill_char()
static void text_fill_char |
( |
uint8_t | x, |
|
|
uint8_t | y, |
|
|
uint16_t | length, |
|
|
uint16_t | ch ) |
|
inlinestatic |
◆ text_get_fontdata()
void text_get_fontdata |
( |
uint16_t | ch, |
|
|
void __far * | data ) |
- Parameters
-
ch | Character code |
data | Output buffer for font data |
◆ text_get_mode()
static uint16_t text_get_mode |
( |
void | | ) |
|
|
inlinestatic |
Get text mode.
Definition at line 90 of file text.h.
◆ text_get_palette()
static uint16_t text_get_palette |
( |
void | | ) |
|
|
inlinestatic |
Get the palette used by printed text.
- Returns
- Palette index.
Definition at line 153 of file text.h.
◆ text_get_screen()
static uint8_t text_get_screen |
( |
void | | ) |
|
|
inlinestatic |
- Returns
- Screen ID
Definition at line 194 of file text.h.
◆ text_put_char()
static void text_put_char |
( |
uint8_t | x, |
|
|
uint8_t | y, |
|
|
uint16_t | ch ) |
|
inlinestatic |
◆ text_put_numeric()
static void text_put_numeric |
( |
uint8_t | x, |
|
|
uint8_t | y, |
|
|
uint8_t | width, |
|
|
uint8_t | flags, |
|
|
uint16_t | value ) |
|
inlinestatic |
◆ text_put_string()
void text_put_string |
( |
uint8_t | x, |
|
|
uint8_t | y, |
|
|
const char __far * | str ) |
◆ text_put_substring()
void text_put_substring |
( |
uint8_t | x, |
|
|
uint8_t | y, |
|
|
const char __far * | str, |
|
|
uint16_t | length ) |
◆ text_screen_init()
static void text_screen_init |
( |
void | | ) |
|
|
inlinestatic |
Initializes a text window with the following default settings:
- X, Y = 0, 0
- width, height = 28, 18
- base tile = 512 - font tile count (in ASCII mode)
- base tile = 512 - (width x height) (in Shift-JIS and mixed modes)
Definition at line 43 of file text.h.
◆ text_set_ank_font()
void text_set_ank_font |
( |
uint8_t | start, |
|
|
uint8_t | depth, |
|
|
uint16_t | count, |
|
|
const void __far * | data ) |
- Parameters
-
start | Starting character code |
depth | 0 = 1BPP, 1 = 2BPP |
count | Number of characters (tiles) |
data | Input buffer containing font data |
◆ text_set_mode()
static void text_set_mode |
( |
uint16_t | value | ) |
|
|
inlinestatic |
Set text mode.
Definition at line 77 of file text.h.
◆ text_set_palette()
static void text_set_palette |
( |
uint16_t | index | ) |
|
|
inlinestatic |
Set the palette used by printed text.
- Parameters
-
Definition at line 139 of file text.h.
◆ text_set_screen()
static void text_set_screen |
( |
uint8_t | id | ) |
|
|
inlinestatic |
- Parameters
-
Definition at line 181 of file text.h.
◆ text_window_init()
static void text_window_init |
( |
uint8_t | x, |
|
|
uint8_t | y, |
|
|
uint8_t | width, |
|
|
uint8_t | height, |
|
|
uint16_t | base ) |
|
inlinestatic |
Initializes a text window on the configured screen. This requires the following number of tiles, starting from the base:
- font tile count (in ASCII mode)
- width x height (in Shift-JIS and mixed modes)
- Parameters
-
x | Starting X offset, in tiles. |
y | Starting Y offset, in tiles. |
width | Width of text window, in tiles. |
height | Height of text window, in tiles. |
base | Base tile index. |
Definition at line 64 of file text.h.