![]() |
BSB Developer Docs
|
A widget that prompts the user to press the Start button. More...
#include <gui/widget.h>Go to the source code of this file.
Typedefs | |
| typedef struct PromptOverlay | PromptOverlay |
| PromptOverlay opaque structure. | |
| typedef void(* | PromptOverlayCallback) (void *context) |
| Animation completion callback function type. | |
Functions | |
| PromptOverlay * | prompt_overlay_alloc (Widget *parent) |
| Create a new PromptOverlay instance. | |
| void | prompt_overlay_free (PromptOverlay *instance) |
| Delete a PromptOverlay instance. | |
| Widget * | prompt_overlay_get_base (PromptOverlay *instance) |
| Get a pointer to the base class instance. | |
| void | prompt_overlay_set_animation_target (PromptOverlay *instance, Widget *widget) |
| Set a widget that will be moved according to the overlay animation. | |
| void | prompt_overlay_set_callback (PromptOverlay *instance, PromptOverlayCallback callback, void *context) |
| Set the function to be called each time upon the animation completion. | |
A widget that prompts the user to press the Start button.
If set, can drive the position of the target widget in accordance to the internally set animation.
Can be used only on the front display.
| typedef void(* PromptOverlayCallback) (void *context) |
Animation completion callback function type.
| [in,out] | context | pointer to a user-specified context object |
| PromptOverlay * prompt_overlay_alloc | ( | Widget * | parent | ) |
Create a new PromptOverlay instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void prompt_overlay_free | ( | PromptOverlay * | instance | ) |
Delete a PromptOverlay instance.
| [in,out] | instance | pointer to the PromptOverlay instance to be deleted |
| Widget * prompt_overlay_get_base | ( | PromptOverlay * | 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 PromptOverlay instance to be queried |
| void prompt_overlay_set_animation_target | ( | PromptOverlay * | instance, |
| Widget * | widget ) |
Set a widget that will be moved according to the overlay animation.
| [in,out] | instance | pointer to the PromptOverlay instance to be modified |
| [in,out] | widget | pointer to the Widget instance to be animated |
| void prompt_overlay_set_callback | ( | PromptOverlay * | instance, |
| PromptOverlayCallback | callback, | ||
| void * | context ) |
Set the function to be called each time upon the animation completion.
| [in,out] | instance | pointer to the PromptOverlay instance to be modified |
| [in] | callback | pointer to the callback function |
| [in,out] | context | pointer to the user-specified object (will be passed to the callback) |