|
ZEReader 0.1.0
A Zephyr-based E-Book-Reader
|
Functions | |
| void | ui_init (context_t *context) |
| Initialize the UI. | |
| void | zereader_clean_page () |
| Clean out the page contents. | |
| void | zereader_print_page (const char *page) |
| Render a page with the given input. | |
| void | zereader_recreate_page (const char *content, size_t page) |
| Recreate the page with new content and scroll position. | |
| void | zereader_scroll_up (void) |
| Scroll up in the text view. | |
| void | zereader_scroll_down (void) |
| Scroll down in the text view. | |
| void | zereader_show_bookmenu (context_t *context, const char *booklist) |
| Shows the book selection menu. | |
| void | zereader_show_logo () |
| Shows the configured logo. | |
| void | zereader_show_shutdown_screen () |
| Show a clean shutdown screen. | |
| void | zereader_update_chapter_status (uint32_t current_chapter, uint32_t num_chapters, char *title) |
| Updates the chapter status in the status bar. | |
| void | zereader_show_chaptermenu (context_t *context, const char *chapterlist) |
| Shows the chapter selection menu/overview. | |
| void | zereader_ui_lock (void) |
| Lock the LVGL mutex. | |
| void | zereader_ui_unlock (void) |
| Unlock the LVGL mutex. | |
| void ui_init | ( | context_t * | context | ) |
Initialize the UI.
| [in] | context | The UI context. |
| void zereader_print_page | ( | const char * | page | ) |
Render a page with the given input.
| [in] | page | A pointer to the text to render. |
| void zereader_recreate_page | ( | const char * | content, |
| size_t | page ) |
Recreate the page with new content and scroll position.
| [in] | content | A pointer to the text to render. |
| [in] | page | The page number to recreate. |
| void zereader_show_bookmenu | ( | context_t * | context, |
| const char * | booklist ) |
Shows the book selection menu.
| [in] | context | The reader's system context. |
| [in] | booklist | The preformatted book list as needed for the LVGL roller. |
| void zereader_show_chaptermenu | ( | context_t * | context, |
| const char * | chapterlist ) |
Shows the chapter selection menu/overview.
| [in] | context | The reader's system context. |
| [in] | chapterlist | The preformatted chapter list as needed for the LVGL roller. |
| void zereader_update_chapter_status | ( | uint32_t | current_chapter, |
| uint32_t | num_chapters, | ||
| char * | title ) |
Updates the chapter status in the status bar.
| current_chapter | Number of the current chapter. |
| num_chapters | Number of chapters in the book. |
| title | Chapter title. |