lv_buttonmatrix_get_selected_button

Function lv_buttonmatrix_get_selected_button 

Source
pub unsafe extern "C" fn lv_buttonmatrix_get_selected_button(
    obj: *const lv_obj_t,
) -> u32
Expand description

Get the index of the lastly “activated” button by the user (pressed, released, focused etc) Useful in the event_cb to get the text of the button, check if hidden etc. @param obj pointer to button matrix object @return index of the last released button (LV_BUTTONMATRIX_BUTTON_NONE: if unset)