pub struct FileDialog {
pub mode: DialogMode,
pub title: String,
pub files: Vec<String>,
pub selected_idx: Option<usize>,
pub filename_input: String,
pub is_open: bool,
pub result: Option<String>,
pub offset_y: usize,
}Fields§
§mode: DialogMode§title: String§files: Vec<String>§selected_idx: Option<usize>§filename_input: String§is_open: bool§result: Option<String>§offset_y: usizeImplementations§
Source§impl FileDialog
impl FileDialog
pub fn new() -> Self
pub fn open(&mut self, mode: DialogMode, default_filename: &str)
pub fn refresh_files(&mut self)
pub fn close(&mut self)
pub fn handle_mouse( &mut self, mx: i32, my: i32, left_click: bool, screen_width: u32, screen_height: u32, ) -> bool
pub fn handle_key(&mut self, keycode: u8, c: Option<char>) -> bool
pub fn draw(&self, screen: &mut Screen)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileDialog
impl RefUnwindSafe for FileDialog
impl Send for FileDialog
impl Sync for FileDialog
impl Unpin for FileDialog
impl UnsafeUnpin for FileDialog
impl UnwindSafe for FileDialog
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