Fixed some outdated comments in source code. Documented Gui Module in docu.
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
* This makes it safe to change the screen from an touch interrupt (e.g. button callback)
|
||||
*/
|
||||
|
||||
/* Possible Improvements:
|
||||
* Ensure that you can not navigate to a screen which is already in the history (because it will corrupt the list)
|
||||
*/
|
||||
|
||||
static SCREEN_STRUCT* screen_list = NULL; //Head of the linked list which stores the screen history.
|
||||
static SCREEN_STRUCT* screen_current = NULL; //Pointer to the current screen (= tail of the list)
|
||||
static volatile SCREEN_STRUCT* screen_goto = NULL; //Screen we should navigate to once we enter the gui_screen_update() method again
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @defgroup screen Screen
|
||||
* The Screen Submodule provides an api to navigate between different "screens" on the UI.
|
||||
* Each screen must provide an enter, update and a leave method; which will be called from this module at the right time.
|
||||
* Each screen must provide an enter, update and a leave method; which will be called from this module at the right time.
|
||||
* The implemented screens of the application are documented in the \ref screens module.
|
||||
*/
|
||||
/*@}*/
|
||||
@@ -44,6 +44,7 @@ typedef struct SCREEN_S{
|
||||
/**
|
||||
* Navigate to the given screen as soon as the app enters the main loop again (and gui_screen_update() is called)
|
||||
* It's safe to call this method from an interrupt
|
||||
* @note Do not pass a screen which is already in your history of screens!
|
||||
* @param screen A Pointer to the preinitialized SCREEN_STRUCT
|
||||
* @return true on success
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user