lv_buttonmatrix_set_button_width() function
Set a single button's relative width. This method will cause the matrix be regenerated and is a relatively expensive operation. It is recommended that initial width be specified using `lv_buttonmatrix_set_ctrl_map` and this method only be used for dynamic changes.
Arguments
obj
pointer to button matrix object
btn_id
0 based index of the button to modify.
width
relative width compared to the buttons in the same row. [1..15]
![]()
lv_buttonmatrix_set_button_width(btnm1, 10, 2);
lv_buttonmatrix_set_button_width() is called by 1 function and calls 1 function:
![]()
lv_buttonmatrix_set_button_width()
lv_buttonmatrix_set_button_width() reads 3 variables:
![]()
lv_buttonmatrix_set_button_width()