[][src]Struct fltk::dialog::FileDialog

pub struct FileDialog { /* fields omitted */ }

Creates a file button

Implementations

impl FileDialog[src]

pub fn new(op: FileDialogType) -> FileDialog[src]

Creates an new file dialog

pub fn filename(&self) -> PathBuf[src]

Returns the chosen file name

pub fn filenames(&self) -> Vec<PathBuf>[src]

Returns the chosen file names

pub fn directory(&self) -> PathBuf[src]

Returns the preset directory

pub fn set_directory(&mut self, dir: &Path)[src]

Sets the starting directory

pub fn show(&mut self)[src]

Shows the file dialog

pub fn set_option(&mut self, opt: FileDialogOptions)[src]

Sets the option for the dialog

pub fn set_type(&mut self, op: FileDialogType)[src]

Sets the type for the dialog

pub fn set_title(&mut self, title: &str)[src]

Sets the title for the dialog

pub fn set_filter(&mut self, f: &str)[src]

Sets the filter for the dialog

pub fn set_preset_file(&mut self, f: &str)[src]

Sets the preset filter for the dialog

pub fn error_message(&self) -> Option<String>[src]

returns the error message from the file dialog

Trait Implementations

impl Debug for FileDialog[src]

impl Drop for FileDialog[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.