N64FlashcartMenu
Loading...
Searching...
No Matches
text_viewer.c File Reference

Text Viewer component implementation. More...

Data Structures

struct  text_file_t
 Text file structure. More...
 

Macros

#define MAX_FILE_SIZE   KiB(128)
 

Functions

void view_text_viewer_init (menu_t *menu)
 Initialize the text viewer.
 
void view_text_viewer_display (menu_t *menu, surface_t *display)
 Display the text viewer.
 

Detailed Description

Text Viewer component implementation.


Data Structure Documentation

◆ text_file_t

struct text_file_t

Text file structure.

Data Fields
FILE * f

File pointer

char * contents

File contents

size_t length

File length

int lines

Number of lines

int current_line

Current line

int offset

Offset in the file

bool vertical_scroll_possible

Flag indicating if vertical scroll is possible