1.8
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...

Public Types

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

Static Public Member Functions

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

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.