1.10
Public Types | Static Public Member Functions | List of all members
DrawerReset Class Reference

Keeps track of what's been changed with Drawer::draw() changes. More...

#include <theme.h>

Public Types

using ResetFunction = std::function< void()>
 Reset function type.
 

Static Public Member Functions

static void add (const ResetFunction &func)
 Add a custom reset function.
 
static void reset ()
 Execute reset functions.
 

Detailed Description

Keeps track of what's been changed with Drawer::draw() changes.

This provides a utility to reset or undo any of Drawer changes, specifically when switching themes.

Member Typedef Documentation

◆ ResetFunction

using ResetFunction = std::function<void()>

Reset function type.

Member Function Documentation

◆ add()

static void add ( const ResetFunction func)
inlinestatic

Add a custom reset function.

◆ reset()

static void reset ( )
inlinestatic

Execute reset functions.