Menu item types
Menu item actions
Menu input value
Menu event callback
Menu item actions
| void Menu_Initialize( |
| ) |
Initialize all the menu pages Must be called first (will reset or set default callback)
| menus const Menu* | Table of <Menu> structures that discribe all the menu pages |
| inline void Menu_SetInputCallback( |
| ) |
Set the callback function to be called to handle menu input
| cb Menu_InputCB | Callback function address |
| inline void Menu_SetDrawCallback( |
| ) |
Set the callback function to be called to handle menu item drawing
| cb Menu_DrawCB | Callback function address |
| inline void Menu_SetEventCallback( |
| ) |
Set the callback function to be called when event occurs
| cb Menu_EventCB | Callback function address |
Set flag to force a whole menu redraw
| void Menu_DrawPage( |
| ) |
Draw a given page by its page number
| page u8 | Page index to draw (index is relative to the ist passed to Menu_Initialize function) |
Update the menu handler
| inline void Menu_SetScreenWidth( |
| ) |
Set menu screen with
| width u8 | Screen width in screen mode's unit (tiles or pixels) |
Get menu screen with
Return: Screen width in screen mode's unit (tiles or pixels)