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

A widget that displays a title card with an icon and text title. More...

#include "../widget.h"

Go to the source code of this file.

Typedefs

typedef struct TitleCard TitleCard
 TitleCard opaque structure.
 

Functions

TitleCard * title_card_alloc (Widget *parent)
 Create a new TitleCard instance.
 
void title_card_free (TitleCard *instance)
 Delete a TitleCard instance.
 
Widget * title_card_get_base (TitleCard *instance)
 Get a pointer to the base class instance.
 
void title_card_set_icon (TitleCard *instance, const char *file_path)
 Set the title card icon from a file.
 
void title_card_set_title (TitleCard *instance, const char *title)
 Set the title card text title.
 

Detailed Description

A widget that displays a title card with an icon and text title.

Function Documentation

◆ title_card_alloc()

TitleCard * title_card_alloc ( Widget * parent)

Create a new TitleCard instance.

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

◆ title_card_free()

void title_card_free ( TitleCard * instance)

Delete a TitleCard instance.

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

◆ title_card_get_base()

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

◆ title_card_set_icon()

void title_card_set_icon ( TitleCard * instance,
const char * file_path )

Set the title card icon from a file.

Parameters
[in,out]instancepointer to the TitleCard instance to be modified
[in]file_pathzero-terminated string containing the full path to icon file

◆ title_card_set_title()

void title_card_set_title ( TitleCard * instance,
const char * title )

Set the title card text title.

Parameters
[in,out]instancepointer to the TitleCard instance to be modified
[in]titlezero-terminated string containing the title text to be shown