[][src]Module lvgl::widgets::img

Contains Rust bindings for LVGL Image Widget API lv_img

Structs

__BindgenBitfieldUnit
_lv_img_decoder
_lv_img_decoder_dsc

Describe an image decoding session. Stores data about the decoding

lv_area_t

Represents an area of the screen.

lv_color16_t__bindgen_ty_1
lv_img_dsc_t

Image header it is compatible with the result from image converter utility

lv_img_ext_t

TYPEDEFS

lv_img_header_t
lv_img_transform_dsc_t
lv_img_transform_dsc_t__bindgen_ty_1
lv_img_transform_dsc_t__bindgen_ty_2
lv_img_transform_dsc_t__bindgen_ty_3
lv_ll_t

Description of a linked list

lv_point_t

Represents a point on the screen.

lv_realign_t
lv_style_list_t

Constants

LV_IMGBTN_TILED
LV_IMG_CACHE_DEF_SIZE
LV_IMG_CF_ALPHA
LV_IMG_CF_ALPHA_1BIT

< Can have one color and it can be drawn or not

LV_IMG_CF_ALPHA_2BIT

< Can have one color but 4 different alpha value

LV_IMG_CF_ALPHA_4BIT

< Can have one color but 16 different alpha value

LV_IMG_CF_ALPHA_8BIT

< Can have one color but 256 different alpha value

LV_IMG_CF_INDEXED
LV_IMG_CF_INDEXED_1BIT

< Can have 2 different colors in a palette (always chroma keyed)

LV_IMG_CF_INDEXED_2BIT

< Can have 4 different colors in a palette (always chroma keyed)

LV_IMG_CF_INDEXED_4BIT

< Can have 16 different colors in a palette (always chroma keyed)

LV_IMG_CF_INDEXED_8BIT

< Can have 256 different colors in a palette (always chroma keyed)

LV_IMG_CF_RAW

< Contains the file as it is. Needs custom decoder function

LV_IMG_CF_RAW_ALPHA

< Contains the file as it is. The image has alpha. Needs custom decoder function

LV_IMG_CF_RAW_CHROMA_KEYED

< Contains the file as it is. The image is chroma keyed. Needs custom decoder function

LV_IMG_CF_RESERVED_15

< Reserved for further use.

LV_IMG_CF_RESERVED_16

< Reserved for further use.

LV_IMG_CF_RESERVED_17

< Reserved for further use.

LV_IMG_CF_RESERVED_18

< Reserved for further use.

LV_IMG_CF_RESERVED_19

< Reserved for further use.

LV_IMG_CF_RESERVED_20

< Reserved for further use.

LV_IMG_CF_RESERVED_21

< Reserved for further use.

LV_IMG_CF_RESERVED_22

< Reserved for further use.

LV_IMG_CF_RESERVED_23

< Reserved for further use.

LV_IMG_CF_TRUE_COLOR

< Color format and depth should match with LV_COLOR settings

LV_IMG_CF_TRUE_COLOR_ALPHA

< Same as LV_IMG_CF_TRUE_COLOR but every pixel has an alpha byte

LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED

< Same as LV_IMG_CF_TRUE_COLOR but LV_COLOR_TRANSP pixels will be transparent

LV_IMG_CF_UNKNOWN
LV_IMG_CF_USER_ENCODED_0

< User holder encoding format.

LV_IMG_CF_USER_ENCODED_1

< User holder encoding format.

LV_IMG_CF_USER_ENCODED_2

< User holder encoding format.

LV_IMG_CF_USER_ENCODED_3

< User holder encoding format.

LV_IMG_CF_USER_ENCODED_4

< User holder encoding format.

LV_IMG_CF_USER_ENCODED_5

< User holder encoding format.

LV_IMG_CF_USER_ENCODED_6

< User holder encoding format.

LV_IMG_CF_USER_ENCODED_7

< User holder encoding format.

LV_IMG_PART_MAIN
LV_IMG_PX_SIZE_ALPHA_BYTE
LV_IMG_SRC_FILE

Binary/C variable

LV_IMG_SRC_SYMBOL

File in filesystem

LV_IMG_SRC_UNKNOWN

Symbol (@ref lv_symbol_def.h)

LV_IMG_SRC_VARIABLE
LV_IMG_ZOOM_NONE

Functions

buf_alloc

Allocate an image buffer in RAM

buf_free

Free an allocated image buffer

buf_get_img_size

Get the memory consumption of a raw bitmap, given color format and dimensions.

buf_get_px_alpha

Get the alpha value of an image's pixel

buf_get_px_color

Get the color of an image's pixel

buf_set_palette

Set the palette color of an indexed image. Valid only for LV_IMG_CF_INDEXED1/2/4/8

buf_set_px_alpha

Set the alpha value of a pixel of an image. The color won't be affected

buf_set_px_color

Set the color of a pixel of an image. The alpha channel won't be affected.

cf_get_px_size

Get the pixel size of a color format in bits

cf_has_alpha

Check if a color format has alpha channel or not

cf_is_chroma_keyed

Check if a color format is chroma keyed or not

create

Create an image objects

decoder_built_in_close

Close the pending decoding. Free resources etc.

decoder_built_in_info

Get info about a built-in image

decoder_built_in_open

Open a built in image

decoder_built_in_read_line

Decode len pixels starting from the given x, y coordinates and store them in buf. Required only if the "open" function can't return with the whole decoded pixel array.

decoder_close

Close a decoding session

decoder_create

Create a new image decoder Return: pointer to the new image decoder

decoder_delete

Delete an image decoder

decoder_get_info

Get information about an image. Try the created image decoder one by one. Once one is able to get info that info will be used.

decoder_open

Open an image. Try the created image decoder one by one. Once one is able to open the image that decoder is save in dsc

decoder_read_line

Read a line from an opened image

decoder_set_close_cb

Set a callback to close a decoding session. E.g. close files and free other resources.

decoder_set_info_cb

Set a callback to get information about the image

decoder_set_open_cb

Set a callback to open an image

decoder_set_read_line_cb

Set a callback to a decoded line of an image

get_angle

Get the rotation angle of the image.

get_antialias

Get whether the transformations (rotate, zoom) are anti-aliased or not

get_auto_size

Get the auto size enable attribute

get_offset_x

Get the offset.x attribute of the img object.

get_offset_y

Get the offset.y attribute of the img object.

get_pivot

Get the rotation center of the image.

get_src

Get the source of the image

get_zoom

Get the zoom factor of the image.

set_angle

Set the rotation angle of the image. The image will be rotated around the set pivot set by lv_img_set_pivot()

set_antialias

Enable/disable anti-aliasing for the transformations (rotate, zoom) or not

set_auto_size

Enable the auto size feature. If enabled the object size will be same as the picture size.

set_offset_x

Set an offset for the source of an image. so the image will be displayed from the new origin.

set_offset_y

Set an offset for the source of an image. so the image will be displayed from the new origin.

set_pivot

Set the rotation center of the image. The image will be rotated around this point

set_src

Set the pixel map to display by the image

set_zoom

Set the zoom factor of the image.

src_get_type

Get the type of an image source

Type Definitions

_bindgen_ty_23

TYPEDEFS

_bindgen_ty_24

Source of image.

_bindgen_ty_35
lv_align_t
lv_bidi_dir_t
lv_color_t
lv_coord_t
lv_design_cb_t

The design callback is used to draw the object on the screen. It accepts the object, a mask area, and the mode in which to draw the object.

lv_design_mode_t
lv_design_res_t
lv_drag_dir_t
lv_event_cb_t

@brief Event callback. Events are used to notify the user of some action being taken on the object. For details, see ::lv_event_t.

lv_event_t
lv_img_cf_t
lv_img_decoder_close_f_t

Close the pending decoding. Free resources etc.

lv_img_decoder_dsc_t
lv_img_decoder_info_f_t

Get info from an image and store in the header

lv_img_decoder_open_f_t

Open an image for decoding. Prepare it as it is required to read it later

lv_img_decoder_read_line_f_t

Decode len pixels starting from the given x, y coordinates and store them in buf. Required only if the "open" function can't return with the whole decoded pixel array.

lv_img_decoder_t
lv_img_decoder_user_data_t
lv_img_part_t
lv_img_src_t
lv_ll_node_t

Dummy type to make handling easier

lv_obj_t
lv_obj_user_data_t
lv_opa_t

! @cond Doxygen_Suppress

lv_res_t
lv_signal_cb_t
lv_signal_t
lv_state_t

Unions

lv_color16_t