diff --git a/Launcher-documentation-WIP.md b/Launcher-documentation-WIP.md index 5d8995c..47e631e 100644 --- a/Launcher-documentation-WIP.md +++ b/Launcher-documentation-WIP.md @@ -11,22 +11,12 @@ You can use the following method to switch the active Screen: void Launcher_SetScreen(struct LScreen* screen); ``` -Example usage: -```C -void SimpleScreen_SetActive(void) { - struct SimpleScreen* s = &SimpleScreen; - LScreen_Reset((struct LScreen*)s); - s->Init = SimpleScreen_Init; - - s->title = "Title text"; - Launcher_SetScreen((struct LScreen*)s); -} -``` - ## What makes up a Launcher Screen A Launcher Screen (shorted to `LScreen`) consists of the following members: +TODO: Talk about LScreen_Reset somewhere + ### Required members #### `void (*Init)(struct LScreen* s)` @@ -113,6 +103,19 @@ TODO ### Slider widgets -## Complete example +# Complete example -TODO \ No newline at end of file +TODO + + +Example usage: +```C +void SimpleScreen_SetActive(void) { + struct SimpleScreen* s = &SimpleScreen; + LScreen_Reset((struct LScreen*)s); + s->Init = SimpleScreen_Init; + + s->title = "Title text"; + Launcher_SetScreen((struct LScreen*)s); +} +``` \ No newline at end of file