ScreenManager v1.0.0
A lightweight C++ library for managing application screens, navigation, transitions and display timing.
Public Member Functions | List of all members
IManagedScreen Class Referenceabstract

Description

Interface for a screen that can be managed by ScreenManager. A 'Screen' is a combination of the 'View' part of MVC (Model, View, Controller) pattern with a portion of 'Controller mixed in.

Widgets and Icons are the true 'View' components but they are called from a Screen.

#include <IManagedScreen.h>

Public Member Functions

virtual void begin ()=0
 Called after a screen is created but before start() More...
 
virtual void start ()=0
 Called by ScreenManager when this screen is set active. This is where the screen should become the app's active context.
 
virtual void draw ()=0
 Called at defined FPS only whan screen is active.
 
virtual bool end ()=0
 Called by ScreenManager before the next screen is set active. More...
 
virtual void pause ()
 Reserved for future use. Pause a screen and hand context to an overlay.
 
virtual void resume ()
 Reserved for future use. Resume a screen (screen should re-acquire context)
 

Member Function Documentation

◆ begin()

virtual void IManagedScreen::begin ( )
pure virtual

Called after a screen is created but before start()

An IManagedScreens begin() will be called as follows: For external screens:

◆ end()

virtual bool IManagedScreen::end ( )
pure virtual

Called by ScreenManager before the next screen is set active.

Returns
true: Progress to next screen
false: Stay on this screen (ignored if TransitionIntent isForce`)

The documentation for this class was generated from the following file: