#[repr(C)]pub struct FileDialog {
pub _reserved: u8,
}Expand description
Static-method namespace for tfd-backed file dialogs.
Fields§
§_reserved: u8Implementations§
Source§impl FileDialog
impl FileDialog
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Returns a zero-initialised namespace handle. Static-only — the struct is just a hook for the FFI layer.
Sourcepub fn open_file(
title: AzString,
default_path: OptionString,
filter_list: OptionFileTypeList,
) -> OptionString
pub fn open_file( title: AzString, default_path: OptionString, filter_list: OptionFileTypeList, ) -> OptionString
Open a single file. Returns None if the user cancelled.
Sourcepub fn open_directory(
title: AzString,
default_path: OptionString,
) -> OptionString
pub fn open_directory( title: AzString, default_path: OptionString, ) -> OptionString
Open a directory. Returns None if the user cancelled.
Sourcepub fn open_multiple_files(
title: AzString,
default_path: OptionString,
filter_list: OptionFileTypeList,
) -> OptionStringVec
pub fn open_multiple_files( title: AzString, default_path: OptionString, filter_list: OptionFileTypeList, ) -> OptionStringVec
Open multiple files. Returns None if the user cancelled.
Sourcepub fn save_file(title: AzString, default_path: OptionString) -> OptionString
pub fn save_file(title: AzString, default_path: OptionString) -> OptionString
Save file dialog. Returns None if the user cancelled.
Trait Implementations§
Source§impl Clone for FileDialog
impl Clone for FileDialog
Source§fn clone(&self) -> FileDialog
fn clone(&self) -> FileDialog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileDialog
impl Debug for FileDialog
Source§impl Hash for FileDialog
impl Hash for FileDialog
Source§impl PartialEq for FileDialog
impl PartialEq for FileDialog
Source§fn eq(&self, other: &FileDialog) -> bool
fn eq(&self, other: &FileDialog) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FileDialog
impl Eq for FileDialog
impl StructuralPartialEq for FileDialog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more