![]() |
BSB Developer Docs
|
An animated title card widget with icon and text animations. More...
#include "../widget.h"Go to the source code of this file.
Typedefs | |
| typedef struct AnimTitleCard | AnimTitleCard |
| AnimTitleCard opaque structure. | |
Functions | |
| AnimTitleCard * | anim_title_card_alloc (Widget *parent) |
| Create a new AnimTitleCard instance. | |
| void | anim_title_card_free (AnimTitleCard *instance) |
| Delete an AnimTitleCard instance. | |
| Widget * | anim_title_card_get_base (AnimTitleCard *instance) |
| Get a pointer to the base class instance. | |
| void | anim_title_card_set_icon (AnimTitleCard *instance, const char *file_path) |
| Set the title card icon from a file. | |
| void | anim_title_card_set_title (AnimTitleCard *instance, const char *title) |
| Set the title card text title. | |
| void | anim_title_card_run_background_anim (AnimTitleCard *instance) |
| Run the background animation. | |
| void | anim_title_card_run_icon_anim (AnimTitleCard *instance, const char *section) |
| Run the icon animation between specified frame ranges. | |
| void | anim_title_card_run_title_anim (AnimTitleCard *instance, int32_t start, int32_t stop, uint32_t duration) |
| Run the title text animation with positioning and duration. | |
An animated title card widget with icon and text animations.
| AnimTitleCard * anim_title_card_alloc | ( | Widget * | parent | ) |
Create a new AnimTitleCard instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void anim_title_card_free | ( | AnimTitleCard * | instance | ) |
Delete an AnimTitleCard instance.
| [in,out] | instance | pointer to the AnimTitleCard instance to be deleted |
| Widget * anim_title_card_get_base | ( | AnimTitleCard * | instance | ) |
Get a pointer to the base class instance.
The return value can be used in all Widget methods.
| [in,out] | instance | pointer to the AnimTitleCard instance to be queried |
| void anim_title_card_run_background_anim | ( | AnimTitleCard * | instance | ) |
Run the background animation.
| [in,out] | instance | pointer to the AnimTitleCard instance to be animated |
| void anim_title_card_run_icon_anim | ( | AnimTitleCard * | instance, |
| const char * | section ) |
Run the icon animation between specified frame ranges.
| [in,out] | instance | pointer to the AnimTitleCard instance to be animated |
| [in] | section | Named section to play back |
| void anim_title_card_run_title_anim | ( | AnimTitleCard * | instance, |
| int32_t | start, | ||
| int32_t | stop, | ||
| uint32_t | duration ) |
Run the title text animation with positioning and duration.
| [in,out] | instance | pointer to the AnimTitleCard instance to be animated |
| [in] | start | starting position for the title animation |
| [in] | stop | ending position for the title animation |
| [in] | duration | animation duration in milliseconds |
| void anim_title_card_set_icon | ( | AnimTitleCard * | instance, |
| const char * | file_path ) |
Set the title card icon from a file.
| [in,out] | instance | pointer to the AnimTitleCard instance to be modified |
| [in] | file_path | zero-terminated string containing the full path to icon file |
| void anim_title_card_set_title | ( | AnimTitleCard * | instance, |
| const char * | title ) |
Set the title card text title.
| [in,out] | instance | pointer to the AnimTitleCard instance to be modified |
| [in] | title | zero-terminated string containing the title text to be shown |