You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().
The text was updated successfully, but these errors were encountered:
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().
The
..._get_text
functions onLabel
andTextarea
don't seem to be available currently. I can get text by calling the C function in anunsafe
block like this:However, it would be nice if I could do
textarea.get_text()
.The text was updated successfully, but these errors were encountered: