lv_imagebutton_set_src() function
Set images for a state of the image button
Arguments
imagebutton
pointer to an image button object
state
for which state set the new image
src_left
pointer to an image source for the left side of the button (a C array or path to a file)
src_mid
pointer to an image source for the middle of the button (ideally 1px wide) (a C array or path to a file)
src_right
pointer to an image source for the right side of the button (a C array or path to a file)
lv_imagebutton_set_src() is called by 1 function and calls 2 functions:
![]()
lv_imagebutton_set_src()
lv_imagebutton_set_src() reads 3 variables:
![]()
lv_imagebutton_set_src()