PebbleOS
Loading...
Searching...
No Matches
Typedefs | Functions
Action chaining window

Menu window to pick a follow-up action of a chained action result. More...

Typedefs

typedef void(* ActionChainingMenuSelectCb) (Window *chaining_window, TimelineItemAction *action, void *context)
 Called when the user selects an action.
 
typedef void(* ActionChainingMenuClosedCb) (void *context)
 Called when the chaining window is unloaded.
 

Functions

void action_chaining_window_push (WindowStack *window_stack, const char *title, TimelineItemActionGroup *action_group, ActionChainingMenuSelectCb select_cb, void *select_cb_context, ActionChainingMenuClosedCb closed_cb, void *closed_cb_context)
 Push a menu listing the actions of an action group.
 

Detailed Description

Menu window to pick a follow-up action of a chained action result.

Typedef Documentation

◆ ActionChainingMenuClosedCb

typedef void(* ActionChainingMenuClosedCb) (void *context)

Called when the chaining window is unloaded.

Parameters
contextContext given to action_chaining_window_push().

◆ ActionChainingMenuSelectCb

typedef void(* ActionChainingMenuSelectCb) (Window *chaining_window, TimelineItemAction *action, void *context)

Called when the user selects an action.

Parameters
chaining_windowThe chaining window.
actionSelected action.
contextContext given to action_chaining_window_push().

Function Documentation

◆ action_chaining_window_push()

void action_chaining_window_push ( WindowStack *  window_stack,
const char *  title,
TimelineItemActionGroup *  action_group,
ActionChainingMenuSelectCb  select_cb,
void *  select_cb_context,
ActionChainingMenuClosedCb  closed_cb,
void *  closed_cb_context 
)

Push a menu listing the actions of an action group.

Each row shows the title and subtitle attributes of an action. title and action_group are referenced, not copied, and must outlive the window.

Parameters
window_stackWindow stack to push to.
titleTitle shown in the status bar.
action_groupActions to choose from.
select_cbCalled when an action is selected, may be NULL.
select_cb_contextContext for select_cb.
closed_cbCalled when the window is unloaded, may be NULL.
closed_cb_contextContext for closed_cb.