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

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.
 

Detailed Description

An animated title card widget with icon and text animations.

Function Documentation

◆ anim_title_card_alloc()

AnimTitleCard * anim_title_card_alloc ( Widget * parent)

Create a new AnimTitleCard instance.

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

◆ anim_title_card_free()

void anim_title_card_free ( AnimTitleCard * instance)

Delete an AnimTitleCard instance.

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

◆ anim_title_card_get_base()

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.

Parameters
[in,out]instancepointer to the AnimTitleCard instance to be queried
Returns
pointer to the base class instance

◆ anim_title_card_run_background_anim()

void anim_title_card_run_background_anim ( AnimTitleCard * instance)

Run the background animation.

Parameters
[in,out]instancepointer to the AnimTitleCard instance to be animated

◆ anim_title_card_run_icon_anim()

void anim_title_card_run_icon_anim ( AnimTitleCard * instance,
const char * section )

Run the icon animation between specified frame ranges.

Parameters
[in,out]instancepointer to the AnimTitleCard instance to be animated
[in]sectionNamed section to play back

◆ anim_title_card_run_title_anim()

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.

Parameters
[in,out]instancepointer to the AnimTitleCard instance to be animated
[in]startstarting position for the title animation
[in]stopending position for the title animation
[in]durationanimation duration in milliseconds

◆ anim_title_card_set_icon()

void anim_title_card_set_icon ( AnimTitleCard * instance,
const char * file_path )

Set the title card icon from a file.

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

◆ anim_title_card_set_title()

void anim_title_card_set_title ( AnimTitleCard * instance,
const char * title )

Set the title card text title.

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