[][src]Struct fltk::dialog::FileChooser

pub struct FileChooser { /* fields omitted */ }

FLTK's own FileChooser. Which differs for the Native FileDialog

Implementations

impl FileChooser[src]

pub fn new(
    dir: &str,
    pattern: &str,
    typ: FileChooserType,
    title: &str
) -> FileChooser
[src]

Instantiates a new FileChooser

pub unsafe fn delete(&mut self)[src]

Deletes a FileChooser

Safety

Can invalidate the underlying pointer

pub fn new_button(&mut self) -> Option<Button>[src]

Gets the new button of the FileChooser

pub fn preview_button(&mut self) -> Option<CheckButton>[src]

Gets the preview button of the FileChooser

pub fn show_hidden_button(&mut self) -> Option<CheckButton>[src]

Gets the show hidden button of the FileChooser

pub fn set_callback(&mut self, cb: Box<dyn FnMut()>)[src]

Sets the callback of the FileChooser

pub fn set_color(&mut self, c: Color)[src]

Sets the color of the FileChooser

pub fn color(&mut self) -> Color[src]

Gets the color of the FileChooser

pub fn count(&mut self) -> u32[src]

Gets the count of chosen items

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

Sets the directory of the FileChooser

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

Gets the directory of the FileChooser

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

Sets the filter of the FileChooser

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

Gets the filter of the FileChooser

pub fn filter_value(&mut self) -> u32[src]

Gets the current filename filter selection

pub fn set_filter_value(&mut self, f: u32)[src]

Sets the current filename filter selection

pub fn hide(&mut self)[src]

Hides the File chooser

pub fn set_iconsize(&mut self, s: u8)[src]

Sets the icon size of the FileChooser

pub fn iconsize(&mut self) -> u8[src]

Gets the icon size of the FileChooser

pub fn set_label(&mut self, l: &str)[src]

Sets the label of the FileChooser

pub fn label(&mut self) -> String[src]

Gets the label of the FileChooser

pub fn set_ok_label(&mut self, l: &str)[src]

Sets the label of the Ok button

pub fn ok_label(&mut self) -> String[src]

Gets the label of the Ok button

pub fn set_preview(&mut self, e: bool)[src]

Add preview to the FileChooser

pub fn preview(&self) -> bool[src]

Returns whether preview is enabled for the FileChooser

pub fn rescan(&mut self)[src]

Rescan the directory

pub fn rescan_keep_filename(&mut self)[src]

Rescan the directory while keeping the file name

pub fn show(&mut self)[src]

Shows the File Chooser

pub fn shown(&mut self) -> bool[src]

Returns whether the file chooser is shown

pub fn set_textcolor(&mut self, c: Color)[src]

Sets the text color of the file chooser

pub fn textcolor(&mut self) -> Color[src]

Gets the text color of the file chooser

pub fn set_textfont(&mut self, f: Font)[src]

Sets the text font of the file chooser

pub fn textfont(&mut self) -> Font[src]

Gets the text font of the file chooser

pub fn set_textsize(&mut self, s: u32)[src]

Sets the text size of the file chooser

pub fn textsize(&mut self) -> u32[src]

Gets the text size of the file chooser

pub fn set_type(&mut self, t: FileChooserType)[src]

Sets the type of the FileChooser

pub fn get_type(&mut self) -> FileChooserType[src]

Gets the type of the FileChooser

pub unsafe fn raw_user_data(&self) -> *mut c_void[src]

Gets the user data of the FileChooser

Safety

Can invalidate the user data while the FileChooser is in use

pub unsafe fn user_data(&self) -> Option<Box<dyn FnMut()>>[src]

Gets the user data of the FileChooser

Safety

Can invalidate the user data while the FileChooser is in use

pub unsafe fn set_user_data(&mut self, d: *mut c_void)[src]

Sets the user data of the FileChooser

Safety

Can invalidate the user data while the FileChooser is in use

pub fn value(&mut self, f: u32) -> Option<String>[src]

Gets the file or dir name chosen by the FileChooser

pub fn set_value(&mut self, filename: &str)[src]

Sets the file or dir name chosen by the FileChooser

pub fn visible(&mut self) -> bool[src]

Returns whether the FileChooser is visible or not

pub fn window(&mut self) -> Window[src]

Trait Implementations

impl Drop for FileChooser[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.