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 "nbgl_touch.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... | |
uint8_t * | nbgl_objGetRAMBuffer (void) |
This function is used to get the all purpose RAM buffer. More... | |
bool | nbgl_objIsUx (nbgl_obj_t *obj) |
This function returns true if the object belongs to a UxScreen. 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 34 of file nbgl_obj.c.
typedef void(* draw_function_t) (nbgl_obj_t *obj, nbgl_obj_t *prevObj, bool computePosition) |
Definition at line 39 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 1651 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 1522 of file nbgl_obj.c.
uint8_t* nbgl_objGetRAMBuffer | ( | void | ) |
This function is used to get the all purpose RAM buffer.
Definition at line 1661 of file nbgl_obj.c.
void nbgl_objInit | ( | void | ) |
This functions inits all internal of nbgl objects layer.
Definition at line 1636 of file nbgl_obj.c.
bool nbgl_objIsUx | ( | nbgl_obj_t * | obj | ) |
This function returns true if the object belongs to a UxScreen.
Definition at line 1671 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 1561 of file nbgl_obj.c.
bool nbgl_refreshIsNeeded | ( | void | ) |
This functions returns true if there is something to refresh.
Definition at line 1607 of file nbgl_obj.c.
void nbgl_refreshReset | ( | void | ) |
This functions resets all changes since the last refresh.
Definition at line 1619 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 1571 of file nbgl_obj.c.
void nbgl_refreshSpecialWithPostRefresh | ( | nbgl_refresh_mode_t | mode, |
nbgl_post_refresh_t | post_refresh | ||
) |
Definition at line 1587 of file nbgl_obj.c.
uint8_t ramBuffer[GZLIB_UNCOMPRESSED_CHUNK] |
Definition at line 125 of file nbgl_obj.c.