[][src]Function lvgl::widgets::dropdown::get_selected_str

pub fn get_selected_str(
    ddlist: *const lv_obj_t,
    buf: *mut c_char,
    buf_size: u32
) -> MynewtResult<()>

Get the current selected option as a string

  • ddlist: pointer to ddlist object
  • buf: pointer to an array to store the string
  • buf_size: size of buf in bytes. 0: to ignore it.