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

Widget that mirrors the front display onto the back display. More...

#include <gui/widget.h>

Go to the source code of this file.

Typedefs

typedef struct DisplayMirror DisplayMirror
 DisplayMirror opaque structure.
 

Functions

DisplayMirror * display_mirror_alloc (Widget *parent)
 Create a new DisplayMirror instance.
 
void display_mirror_free (DisplayMirror *instance)
 Delete a DisplayMirror instance.
 
Widget * display_mirror_get_base (DisplayMirror *instance)
 Get a pointer to the base class instance.
 

Detailed Description

Widget that mirrors the front display onto the back display.

Function Documentation

◆ display_mirror_alloc()

DisplayMirror * display_mirror_alloc ( Widget * parent)

Create a new DisplayMirror instance.

Can be attached only to the back display.

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

◆ display_mirror_free()

void display_mirror_free ( DisplayMirror * instance)

Delete a DisplayMirror instance.

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

◆ display_mirror_get_base()

Widget * display_mirror_get_base ( DisplayMirror * 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 DisplayMirror instance to be queried
Returns
pointer to the base class instance