![]() |
BSB Developer Docs
|
Simple text menu item widget. More...
#include "private/smenu_item.h"Go to the source code of this file.
Typedefs | |
| typedef struct SMenuItemSimple | SMenuItemSimple |
| SMenuItemSimple opaque structure. | |
Functions | |
| SMenuItemSimple * | smenu_item_simple_alloc (Widget *parent) |
| Create a new SMenuItemSimple instance. | |
| void | smenu_item_simple_set_primary_text (SMenuItemSimple *instance, const char *text) |
| Set the item primary label text. | |
| void | smenu_item_simple_set_auxiliary_text (SMenuItemSimple *instance, const char *auxiliary_text) |
| Set the item auxiliary label text. | |
| void | smenu_item_simple_set_arrow_enabled (SMenuItemSimple *instance, bool is_arrow_enabled) |
| Show or hide the item arrow. | |
| SMenuItem * | smenu_item_simple_get_base (SMenuItemSimple *instance) |
| Get a pointer to the base class instance. | |
Simple text menu item widget.
| SMenuItemSimple * smenu_item_simple_alloc | ( | Widget * | parent | ) |
Create a new SMenuItemSimple instance.
| [in,out] | parent | pointer to the parent Widget instance |
| SMenuItem * smenu_item_simple_get_base | ( | SMenuItemSimple * | instance | ) |
Get a pointer to the base class instance.
The return value can be used in all SMenuItem methods.
| [in,out] | instance | pointer to the SMenuItemSimple instance to be queried |
| void smenu_item_simple_set_arrow_enabled | ( | SMenuItemSimple * | instance, |
| bool | is_arrow_enabled ) |
Show or hide the item arrow.
| [in,out] | instance | pointer to the SMenuItemSimple instance to be modified |
| [in] | is_arrow_enabled | whether the arrow is visible |
| void smenu_item_simple_set_auxiliary_text | ( | SMenuItemSimple * | instance, |
| const char * | auxiliary_text ) |
Set the item auxiliary label text.
| [in,out] | instance | pointer to the SMenuItemSimple instance to be modified |
| [in] | auxiliary_text | zero-terminated string containing the auxiliary label (may be NULL) |
| void smenu_item_simple_set_primary_text | ( | SMenuItemSimple * | instance, |
| const char * | text ) |
Set the item primary label text.
| [in,out] | instance | pointer to the SMenuItemSimple instance to be modified |
| [in] | text | zero-terminated string containing the item primary label |