![]() |
BSB Developer Docs
|
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. | |
A widget that displays a title card with an icon and text title.
Create a new TitleCard instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void title_card_free | ( | TitleCard * | instance | ) |
Delete a TitleCard instance.
| [in,out] | instance | pointer to the TitleCard instance to be deleted |
Get a pointer to the base class instance.
The return value can be used in all Widget methods.
| [in,out] | instance | pointer to the TitleCard instance to be queried |
| void title_card_set_icon | ( | TitleCard * | instance, |
| const char * | file_path ) |
Set the title card icon from a file.
| [in,out] | instance | pointer to the TitleCard instance to be modified |
| [in] | file_path | zero-terminated string containing the full path to icon file |
| void title_card_set_title | ( | TitleCard * | instance, |
| const char * | title ) |
Set the title card text title.
| [in,out] | instance | pointer to the TitleCard instance to be modified |
| [in] | title | zero-terminated string containing the title text to be shown |