lv_barcode.h

API reference for lv_barcode.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_barcode_private.h

Functions

lv_barcode_set_dark_color

Set the dark color of a barcode object

 
void lv_barcode_set_dark_color(lv_obj_t *obj, lv_color_t color)
Parameters
NameTypeDescription
objlv_obj_t *pointer to barcode object
colorlv_color_tdark color of the barcode

lv_barcode_set_light_color

Set the light color of a barcode object

 
void lv_barcode_set_light_color(lv_obj_t *obj, lv_color_t color)
Parameters
NameTypeDescription
objlv_obj_t *pointer to barcode object
colorlv_color_tlight color of the barcode

lv_barcode_set_scale

Set the scale of a barcode object

 
void lv_barcode_set_scale(lv_obj_t *obj, uint16_t scale)
Parameters
NameTypeDescription
objlv_obj_t *pointer to barcode object
scaleuint16_tscale factor

lv_barcode_set_direction

Set the direction of a barcode object

 
void lv_barcode_set_direction(lv_obj_t *obj, lv_dir_t direction)
Parameters
NameTypeDescription
objlv_obj_t *pointer to barcode object
directionlv_dir_tdraw direction (LV_DIR_HOR or LB_DIR_VER)

lv_barcode_set_tiled

Set the tiled mode of a barcode object

 
void lv_barcode_set_tiled(lv_obj_t *obj, bool tiled)
Parameters
NameTypeDescription
objlv_obj_t *pointer to barcode object
tiledbooltrue: tiled mode, false: normal mode (default)

lv_barcode_set_encoding

Set the encoding of a barcode object

 
void lv_barcode_set_encoding(lv_obj_t *obj, lv_barcode_encoding_t encoding)
Parameters
NameTypeDescription
objlv_obj_t *pointer to barcode object
encodinglv_barcode_encoding_tencoding (default is LV_BARCODE_CODE128_GS1)

Enums

lv_barcode_encoding_t

NameDescription
LV_BARCODE_ENCODING_CODE128_GS1Code 128 with GS1 encoding. Strips [FCN1] and spaces.
LV_BARCODE_ENCODING_CODE128_RAWCode 128 with raw encoding.
Used by 1 function
  • lv_barcode_set_encoding — param encoding

Variables

lv_barcode_class

 
const lv_obj_class_t lv_barcode_class

Dependencies

How is this guide?

Last updated on

On this page