lv_binding_rust icon indicating copy to clipboard operation
lv_binding_rust copied to clipboard

..._get_text functions not available

Open Johennes opened this issue 1 year ago • 0 comments

The ..._get_text functions on Label and Textarea don't seem to be available currently. I can get text by calling the C function in an unsafe block like this:

let mut textarea = Textarea::new()?;
unsafe {
    let text = CStr::from_ptr(lv_textarea_get_text(textarea.raw().unwrap().as_ptr()));
}

However, it would be nice if I could do textarea.get_text().

Johennes avatar Mar 13 '24 19:03 Johennes