BSB Developer Docs
Loading...
Searching...
No Matches
pause_overlay.h File Reference

A widget that provides a dimmed and blurred pause overlay. More...

#include <gui/widget.h>

Go to the source code of this file.

Typedefs

typedef struct PauseOverlay PauseOverlay
 PauseOverlay opaque structure.
 

Functions

PauseOverlay * pause_overlay_alloc (Widget *parent)
 Create a new PauseOverlay instance.
 
void pause_overlay_free (PauseOverlay *instance)
 Delete a PauseOverlay instance.
 
Widget * pause_overlay_get_base (PauseOverlay *instance)
 Get a pointer to the base class instance.
 
void pause_overlay_show (PauseOverlay *instance, bool show)
 Show or hide a PauseOverlay instance and play the respective animation.
 

Detailed Description

A widget that provides a dimmed and blurred pause overlay.

Can be used only on the front display.

Function Documentation

◆ pause_overlay_alloc()

PauseOverlay * pause_overlay_alloc ( Widget * parent)

Create a new PauseOverlay instance.

Parameters
[in,out]parentpointer to the parent Widget instance
Returns
pointer to the newly created PauseOverlay instance

◆ pause_overlay_free()

void pause_overlay_free ( PauseOverlay * instance)

Delete a PauseOverlay instance.

Parameters
[in,out]instancepointer to the PauseOverlay instance to be deleted

◆ pause_overlay_get_base()

Widget * pause_overlay_get_base ( PauseOverlay * instance)

Get a pointer to the base class instance.

The return value can be used in all Widget methods.

Parameters
[in,out]instancepointer to the PauseOverlay instance to be queried
Returns
pointer to the base class instance

◆ pause_overlay_show()

void pause_overlay_show ( PauseOverlay * instance,
bool show )

Show or hide a PauseOverlay instance and play the respective animation.

Parameters
[in,out]instancepointer to the PauseOverlay instance to be operated on
[in]showshow the overlay if true, hide if false