![]() |
BSB Developer Docs
|
A widget that provides a graphical theme picker. More...
Go to the source code of this file.
Typedefs | |
| typedef struct ThemePicker | ThemePicker |
| ThemePicker opaque structure. | |
| typedef void(* | ThemePickerCallback) (uint32_t index, void *context) |
| ThemePickerCallback function type. | |
Functions | |
| ThemePicker * | theme_picker_alloc (Widget *parent) |
| Create a new ThemePicker instance. | |
| void | theme_picker_free (ThemePicker *instance) |
| Delete a ThemePicker instance. | |
| Widget * | theme_picker_get_base (ThemePicker *instance) |
| Get a pointer to the base class instance. | |
| void | theme_picker_set_callback (ThemePicker *instance, ThemePickerCallback callback, void *context) |
| Set the function to be called upon theme selection. | |
| void | theme_picker_set_model (ThemePicker *instance, const ThemePickerModel *model) |
| Set the model to show in this ThemePicker instance. | |
| void | theme_picker_set_current_item (ThemePicker *instance, uint32_t index) |
| Set the currently selected item index. | |
A widget that provides a graphical theme picker.
| typedef void(* ThemePickerCallback) (uint32_t index, void *context) |
ThemePickerCallback function type.
| [in] | index | numeric index of the currently selected theme |
| [in,out] | context | pointer to the user-specific object |
| ThemePicker * theme_picker_alloc | ( | Widget * | parent | ) |
Create a new ThemePicker instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void theme_picker_free | ( | ThemePicker * | instance | ) |
Delete a ThemePicker instance.
| [in,out] | instance | pointer to the ThemePicker instance to be deleted |
| Widget * theme_picker_get_base | ( | ThemePicker * | 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 ThemePicker instance to be queried |
| void theme_picker_set_callback | ( | ThemePicker * | instance, |
| ThemePickerCallback | callback, | ||
| void * | context ) |
Set the function to be called upon theme selection.
| [in,out] | instance | pointer to the ThemePicker instance to be modified |
| [in] | callback | pointer to the function to be called upon theme selection |
| [in,out] | context | pointer to a user-specified object (will be passed to the callback) |
| void theme_picker_set_current_item | ( | ThemePicker * | instance, |
| uint32_t | index ) |
Set the currently selected item index.
| [in,out] | instance | pointer to the ThemePicker instance to be modified |
| [in] | index | numeric index of the desired item |
| void theme_picker_set_model | ( | ThemePicker * | instance, |
| const ThemePickerModel * | model ) |
Set the model to show in this ThemePicker instance.
| [in,out] | instance | pointer to the ThemePicker instance to be modified |
| [in] | model | pointer to a ThemePickerModel instance to be shown |