lv_barcode.h
API reference for lv_barcode.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_barcode_private.h
Summary
Functions
libs/barcode/lv_barcode.h:60function
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)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to barcode object |
color | lv_color_t | dark color of the barcode |
libs/barcode/lv_barcode.h:67function
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)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to barcode object |
color | lv_color_t | light color of the barcode |
libs/barcode/lv_barcode.h:74function
lv_barcode_set_scale
Set the scale of a barcode object
void lv_barcode_set_scale(lv_obj_t *obj, uint16_t scale)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to barcode object |
scale | uint16_t | scale factor |
libs/barcode/lv_barcode.h:81function
lv_barcode_set_direction
Set the direction of a barcode object
void lv_barcode_set_direction(lv_obj_t *obj, lv_dir_t direction)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to barcode object |
direction | lv_dir_t | draw direction (LV_DIR_HOR or LB_DIR_VER) |
libs/barcode/lv_barcode.h:88function
lv_barcode_set_tiled
Set the tiled mode of a barcode object
void lv_barcode_set_tiled(lv_obj_t *obj, bool tiled)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to barcode object |
tiled | bool | true: tiled mode, false: normal mode (default) |
libs/barcode/lv_barcode.h:95function
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)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to barcode object |
encoding | lv_barcode_encoding_t | encoding (default is LV_BARCODE_CODE128_GS1) |
Enums
lv_barcode_encoding_t
| Name | Description |
|---|---|
LV_BARCODE_ENCODING_CODE128_GS1 | Code 128 with GS1 encoding. Strips [FCN1] and spaces. |
LV_BARCODE_ENCODING_CODE128_RAW | Code 128 with raw encoding. |
Used by 1 function
lv_barcode_set_encoding— paramencoding
Variables
libs/barcode/lv_barcode.h:42variable
lv_barcode_class
const lv_obj_class_t lv_barcode_classDependencies
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color_op.hlv_conf_kconfig.hlv_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_property_names.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_observer.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.h
How is this guide?
Last updated on