|
Embedded SDK
Embedded SDK
|
Implementation of flow management. More...
#include <string.h>#include "nbgl_debug.h"#include "nbgl_flow.h"#include "glyphs.h"#include "os_pic.h"#include "ux.h"
Go to the source code of this file.
Classes | |
| struct | FlowContext_s |
Macros | |
| #define | NB_MAX_LAYERS 3 |
| < Maximum number of layers for flow, cannot be greater than max number of step layers | |
Typedefs | |
| typedef struct FlowContext_s | FlowContext_t |
Functions | |
| static void | actionCallback (nbgl_step_t stepCtx, nbgl_buttonEvent_t event) |
| static FlowContext_t * | getFreeContext (bool modal) |
| static FlowContext_t * | getContextFromStepCtx (nbgl_step_t stepCtx) |
| static void | drawStep (FlowContext_t *ctx, nbgl_stepPosition_t pos, bool modal, const nbgl_icon_details_t *icon, const char *txt, const char *subTxt) |
| nbgl_flow_t | nbgl_flowDraw (const nbgl_stepDesc_t *steps, uint8_t nbSteps, uint8_t initStep, bool loop, bool modal) |
| draw the given flow, starting at the given step | |
| void | nbgl_flowRelease (nbgl_flow_t flow) |
| release the given flow | |
Variables | |
| static FlowContext_t | contexts [NB_MAX_LAYERS] |
Implementation of flow management.
Definition in file nbgl_flow.c.
| #define NB_MAX_LAYERS 3 |
< Maximum number of layers for flow, cannot be greater than max number of step layers
Definition at line 27 of file nbgl_flow.c.
| typedef struct FlowContext_s FlowContext_t |
|
static |
Definition at line 133 of file nbgl_flow.c.
|
static |
Definition at line 103 of file nbgl_flow.c.
|
static |
Definition at line 85 of file nbgl_flow.c.
|
static |
Definition at line 56 of file nbgl_flow.c.
| nbgl_flow_t nbgl_flowDraw | ( | const nbgl_stepDesc_t * | steps, |
| uint8_t | nbSteps, | ||
| uint8_t | initStep, | ||
| bool | loop, | ||
| bool | modal | ||
| ) |
draw the given flow, starting at the given step
| steps | array of step descriptions |
| nbSteps | number of steps in above array |
| initStep | init step in above array |
| loop | if true, loop between last and first step, in both direction |
| modal | if true, screens are modal |
Definition at line 194 of file nbgl_flow.c.
| void nbgl_flowRelease | ( | nbgl_flow_t | flow | ) |
|
static |
Definition at line 44 of file nbgl_flow.c.