Embedded SDK
Embedded SDK
|
Implementation of API to draw all basic graphic objects. More...
#include <string.h>
#include "app_config.h"
#include "nbgl_obj.h"
#include "nbgl_draw.h"
#include "nbgl_front.h"
#include "nbgl_debug.h"
#include "nbgl_screen.h"
#include "os_print.h"
#include "os_helpers.h"
#include "os_pic.h"
#include "glyphs.h"
Go to the source code of this file.
Macros | |
#define | NB_MAX_LETTERS 9 |
#define | ICON_TEXT_SPACE 12 |
#define | INTER_DASHES 8 |
Typedefs | |
typedef void(* | draw_function_t) (nbgl_obj_t *obj, nbgl_obj_t *prevObj, bool computePosition) |
Functions | |
const char * | get_ux_loc_string (uint32_t index) |
void | nbgl_objDraw (nbgl_obj_t *obj) |
This function draws or redraws the given object and its children (recursive version) More... | |
void | nbgl_refresh (void) |
This functions refreshes the actual screen on display with what has changed since the last refresh. More... | |
void | nbgl_refreshSpecial (nbgl_refresh_mode_t mode) |
This functions refreshes the actual screen on display with what has changed since the last refresh, according to the given mode (Black&White and other) More... | |
void | nbgl_refreshSpecialWithPostRefresh (nbgl_refresh_mode_t mode, nbgl_post_refresh_t post_refresh) |
bool | nbgl_refreshIsNeeded (void) |
This functions returns true if there is something to refresh. More... | |
void | nbgl_refreshReset (void) |
This functions resets all changes since the last refresh. More... | |
void | nbgl_objInit (void) |
This functions inits all internal of nbgl objects layer. More... | |
void | nbgl_objAllowDrawing (bool enable) |
This functions enables or disables drawing/refresh for all further calls. More... | |
Variables | |
uint8_t | ramBuffer [GZLIB_UNCOMPRESSED_CHUNK] |
Implementation of API to draw all basic graphic objects.
Definition in file nbgl_obj.c.
#define ICON_TEXT_SPACE 12 |
#define INTER_DASHES 8 |
#define NB_MAX_LETTERS 9 |
Definition at line 33 of file nbgl_obj.c.
typedef void(* draw_function_t) (nbgl_obj_t *obj, nbgl_obj_t *prevObj, bool computePosition) |
Definition at line 38 of file nbgl_obj.c.
const char* get_ux_loc_string | ( | uint32_t | index | ) |
void nbgl_objAllowDrawing | ( | bool | enable | ) |
This functions enables or disables drawing/refresh for all further calls.
enable | if true, enables drawing/refresh, otherwise disables |
Definition at line 1645 of file nbgl_obj.c.
void nbgl_objDraw | ( | nbgl_obj_t * | obj | ) |
This function draws or redraws the given object and its children (recursive version)
obj | the object to redraw |
Definition at line 1521 of file nbgl_obj.c.
void nbgl_objInit | ( | void | ) |
This functions inits all internal of nbgl objects layer.
Definition at line 1634 of file nbgl_obj.c.
void nbgl_refresh | ( | void | ) |
This functions refreshes the actual screen on display with what has changed since the last refresh.
Definition at line 1560 of file nbgl_obj.c.
bool nbgl_refreshIsNeeded | ( | void | ) |
This functions returns true if there is something to refresh.
Definition at line 1606 of file nbgl_obj.c.
void nbgl_refreshReset | ( | void | ) |
This functions resets all changes since the last refresh.
Definition at line 1618 of file nbgl_obj.c.
void nbgl_refreshSpecial | ( | nbgl_refresh_mode_t | mode | ) |
This functions refreshes the actual screen on display with what has changed since the last refresh, according to the given mode (Black&White and other)
mode | mode of refresh |
Definition at line 1570 of file nbgl_obj.c.
void nbgl_refreshSpecialWithPostRefresh | ( | nbgl_refresh_mode_t | mode, |
nbgl_post_refresh_t | post_refresh | ||
) |
Definition at line 1586 of file nbgl_obj.c.
uint8_t ramBuffer[GZLIB_UNCOMPRESSED_CHUNK] |
Definition at line 124 of file nbgl_obj.c.