BSB Developer Docs
Loading...
Searching...
No Matches
nav_bar.h File Reference
#include "../widget.h"

Go to the source code of this file.

Typedefs

typedef struct NavBar NavBar
 NavBar opaque structure.
 

Functions

NavBar * nav_bar_alloc (Widget *parent)
 Create a new NavBar instance.
 
void nav_bar_free (NavBar *instance)
 Delete a NavBar instance.
 
Widget * nav_bar_get_base (NavBar *instance)
 Get a pointer to the base class instance.
 
void nav_bar_set_header_image (NavBar *instance, const char *file_path)
 Set the header image for a NavBar instance.
 
void nav_bar_set_header_text (NavBar *instance, const char *text)
 Set the header text for a NavBar instance.
 
void nav_bar_set_visible (NavBar *instance, bool visible)
 Set the visibility of a NavBar instance.
 
void nav_bar_push_location (NavBar *instance, const char *location_name)
 Add the next location to the NavBar breadcrumbs header.
 
void nav_bar_pop_location (NavBar *instance)
 Remove the last location from the NavBar breadcrumbs header.
 
void nav_bar_reset_location (NavBar *instance)
 Remove all locations from the NavBar.
 

Function Documentation

◆ nav_bar_alloc()

NavBar * nav_bar_alloc ( Widget * parent)

Create a new NavBar instance.

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

◆ nav_bar_free()

void nav_bar_free ( NavBar * instance)

Delete a NavBar instance.

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

◆ nav_bar_get_base()

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

◆ nav_bar_pop_location()

void nav_bar_pop_location ( NavBar * instance)

Remove the last location from the NavBar breadcrumbs header.

Parameters
[in,out]instancepointer to the NavBar instance to be modified

◆ nav_bar_push_location()

void nav_bar_push_location ( NavBar * instance,
const char * location_name )

Add the next location to the NavBar breadcrumbs header.

Parameters
[in,out]instancepointer to the NavBar instance to be modified
[in]location_namezero-terminated string containing the location name to be added

◆ nav_bar_reset_location()

void nav_bar_reset_location ( NavBar * instance)

Remove all locations from the NavBar.

Parameters
[in,out]instancepointer to the NavBar instance to be modified

◆ nav_bar_set_header_image()

void nav_bar_set_header_image ( NavBar * instance,
const char * file_path )

Set the header image for a NavBar instance.

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

◆ nav_bar_set_header_text()

void nav_bar_set_header_text ( NavBar * instance,
const char * text )

Set the header text for a NavBar instance.

Parameters
[in,out]instancepointer to the NavBar instance to be modified
[in]textzero-terminated string containing the text to be set

◆ nav_bar_set_visible()

void nav_bar_set_visible ( NavBar * instance,
bool visible )

Set the visibility of a NavBar instance.

Parameters
[in,out]instancepointer to the NavBar instance to be modified
[in]visibleboolean value indicating whether the NavBar should be visible