pub struct FilePicker { /* private fields */ }Implementations§
Source§impl FilePicker
impl FilePicker
Sourcepub unsafe fn new(
parent: *mut lv_obj_t,
vfs: &'static VirtualFileSystem,
caller: TaskIdentifier,
mode: FilePickerMode,
initial: &str,
) -> Result<NonNull<Self>>
pub unsafe fn new( parent: *mut lv_obj_t, vfs: &'static VirtualFileSystem, caller: TaskIdentifier, mode: FilePickerMode, initial: &str, ) -> Result<NonNull<Self>>
Create a picker under parent; deleting its LVGL parent also drops all Rust state.
§Safety
parent must be a live LVGL object and the graphics lock must be held.
Sourcepub unsafe fn reset(
&mut self,
mode: FilePickerMode,
initial: &str,
) -> Result<()>
pub unsafe fn reset( &mut self, mode: FilePickerMode, initial: &str, ) -> Result<()>
Reuse this picker and its guest handle for another selection session. Clears the previous result while preserving the original VFS and caller.
§Safety
The graphics lock must be held and this must be a live LVGL picker.
pub fn status(&self) -> FilePickerStatus
pub fn selected_path(&self) -> Option<&str>
pub fn as_object_mutable(&mut self) -> &mut lv_obj_t
Auto Trait Implementations§
impl Freeze for FilePicker
impl !RefUnwindSafe for FilePicker
impl !Send for FilePicker
impl !Sync for FilePicker
impl Unpin for FilePicker
impl UnsafeUnpin for FilePicker
impl !UnwindSafe for FilePicker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more