Embedded SDK
Embedded SDK
nbgl_front.h
Go to the documentation of this file.
1 
7 #ifndef NBGL_FRONT_H
8 #define NBGL_FRONT_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 /*********************
15  * INCLUDES
16  *********************/
17 #include "nbgl_types.h"
18 
19 /*********************
20  * DEFINES
21  *********************/
22 
23 /**********************
24  * TYPEDEFS
25  **********************/
26 
27 /**********************
28  * GLOBAL PROTOTYPES
29  **********************/
30 void nbgl_frontDrawRect(const nbgl_area_t *area);
31 void nbgl_frontDrawHorizontalLine(const nbgl_area_t *area, uint8_t mask, color_t lineColor);
33  const uint8_t *buffer,
34  nbgl_transformation_t transformation,
35  nbgl_color_map_t colorMap);
37  const uint8_t *buffer,
38  nbgl_color_map_t colorMap,
39  const uint8_t *uzlib_chunk_buffer);
41  const uint8_t *buffer,
42  uint32_t buffer_len,
43  color_t fore_color,
44  uint8_t nb_skipped_bytes);
47  nbgl_post_refresh_t post_refresh);
48 void nbgl_frontControlAreaMasking(uint8_t mask_index, nbgl_area_t *masked_area_or_null);
49 
50 /**********************
51  * MACROS
52  **********************/
53 
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif
57 
58 #endif /* NBGL_FRONT_H */
void nbgl_frontControlAreaMasking(uint8_t mask_index, nbgl_area_t *masked_area_or_null)
void nbgl_frontDrawImage(const nbgl_area_t *area, const uint8_t *buffer, nbgl_transformation_t transformation, nbgl_color_map_t colorMap)
void nbgl_frontDrawImageFile(const nbgl_area_t *area, const uint8_t *buffer, nbgl_color_map_t colorMap, const uint8_t *uzlib_chunk_buffer)
void nbgl_frontDrawImageRle(const nbgl_area_t *area, const uint8_t *buffer, uint32_t buffer_len, color_t fore_color, uint8_t nb_skipped_bytes)
void nbgl_frontRefreshArea(const nbgl_area_t *area, nbgl_refresh_mode_t mode, nbgl_post_refresh_t post_refresh)
void nbgl_frontDrawHorizontalLine(const nbgl_area_t *area, uint8_t mask, color_t lineColor)
void nbgl_frontDrawRect(const nbgl_area_t *area)
common types for Graphical Library
color_t
Definition: nbgl_types.h:101
uint8_t nbgl_transformation_t
Represents the transformation to be applied on the bitmap before rendering This is a bitfield using m...
Definition: nbgl_types.h:348
nbgl_post_refresh_t
Post refresh modes.
Definition: nbgl_types.h:315
uint8_t nbgl_color_map_t
Represents the color_map to be used for 2BPP image, or the foreground color for 1BPP image.
Definition: nbgl_types.h:355
struct PACKED__ nbgl_area_s nbgl_area_t
Represents a rectangle area of the screen.
nbgl_refresh_mode_t
different modes of refresh for nbgl_refreshSpecial()
Definition: nbgl_types.h:287
unsigned char uint8_t
Definition: usbd_conf.h:53