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

A widget that shows the front display mirrored content. More...

#include <gui/widget.h>

Go to the source code of this file.

Typedefs

typedef struct MirrorCard MirrorCard
 MirrorCard opaque structure.
 

Functions

MirrorCard * mirror_card_alloc (Widget *parent)
 Create a new MirrorCard instance.
 
void mirror_card_free (MirrorCard *instance)
 Delete a MirrorCard instance.
 
Widget * mirror_card_get_base (MirrorCard *instance)
 Get a pointer to the base class instance.
 
void mirror_card_set_show_header (MirrorCard *instance, bool show)
 Show or hide the top text.
 
void mirror_card_set_header_text (MirrorCard *instance, const char *header_text)
 Set the header text.
 
void mirror_card_set_show_footer (MirrorCard *instance, bool show)
 Show or hide the footer.
 
void mirror_card_set_footer_primary_text (MirrorCard *instance, const char *primary_text)
 Set the footer primary text.
 
void mirror_card_set_footer_secondary_text (MirrorCard *instance, const char *secondary_text)
 Set the footer secondary text.
 

Detailed Description

A widget that shows the front display mirrored content.

Can be used only on the back display.

Function Documentation

◆ mirror_card_alloc()

MirrorCard * mirror_card_alloc ( Widget * parent)

Create a new MirrorCard instance.

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

◆ mirror_card_free()

void mirror_card_free ( MirrorCard * instance)

Delete a MirrorCard instance.

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

◆ mirror_card_get_base()

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

◆ mirror_card_set_footer_primary_text()

void mirror_card_set_footer_primary_text ( MirrorCard * instance,
const char * primary_text )

Set the footer primary text.

Parameters
[in,out]instancepointer to the MirrorCard instance to be modified
[in]primary_texttext to display in the footer primary position

◆ mirror_card_set_footer_secondary_text()

void mirror_card_set_footer_secondary_text ( MirrorCard * instance,
const char * secondary_text )

Set the footer secondary text.

Parameters
[in,out]instancepointer to the MirrorCard instance to be modified
[in]secondary_texttext to display in the footer secondary position

◆ mirror_card_set_header_text()

void mirror_card_set_header_text ( MirrorCard * instance,
const char * header_text )

Set the header text.

Parameters
[in,out]instancepointer to the MirrorCard instance to be modified
[in]header_texttext to display in the header

◆ mirror_card_set_show_footer()

void mirror_card_set_show_footer ( MirrorCard * instance,
bool show )

Show or hide the footer.

Parameters
[in,out]instancepointer to the MirrorCard instance to be modified
[in]showshow the footer if true, hide if false

◆ mirror_card_set_show_header()

void mirror_card_set_show_header ( MirrorCard * instance,
bool show )

Show or hide the top text.

Parameters
[in,out]instancepointer to the MirrorCard instance to be modified
[in]showshow the top text if true, hide if false