ScreenManager v1.1.0
A lightweight C++ library for managing application screens, navigation, transitions and display timing.
Public Member Functions | Public Attributes | List of all members
TransitionIntent Struct Reference

Description

The type of transition and an optional requested ScreenId.

#include <ScreenTransition.h>

Public Member Functions

constexpr TransitionIntent (TransitionIntentType intentType=TransitionIntentType::None, uint8_t ScreenId=0)
 Must have a constructor to use defaults in C++11 because 'aggregate` _O_/. More...
 

Public Attributes

TransitionIntentType type
 The requested transition type.
 
ScreenId requested
 Explicit requested ScreenId.
 

Constructor & Destructor Documentation

◆ TransitionIntent()

constexpr TransitionIntent::TransitionIntent ( TransitionIntentType  intentType = TransitionIntentType::None,
uint8_t  ScreenId = 0 
)
inlineconstexpr

Must have a constructor to use defaults in C++11 because 'aggregate` _O_/.

Parameters
TransitionIntentTypeTransition intent types are:
  • None - No transition, stay on current screen
  • Auto - The IScreenRouter decides which screen to transition to.
  • Next - The IScreenRouter can accept a provided screen name or redirect
  • Back - The IScreenRouter determines what the previous screen should be
  • Init - Only the first IScreenRouter can resolve this.
  • Force - Force a screen change. Current screen's end() will be called but the result ignored. Use with caution.
ScreenId- An explicitly requested ScreenId (alias for a uint8_t)

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