pub struct OpenButtonSettings {
pub dialog_settings: OpenDialogSettings,
pub icon: Option<&'static str>,
pub text: &'static str,
pub recently_opened_files: Option<&'static str>,
pub max_recent_files: usize,
}Expand description
Configuration for the open button component
Fields§
§dialog_settings: OpenDialogSettingsSettings for the open file dialog.
icon: Option<&'static str>Icon of the open button.
text: &'static strText of the open button.
recently_opened_files: Option<&'static str>Path to a file where recent files should be stored. This list is updated fully automatically.
max_recent_files: usizeMaximum amount of recent files to store. This is only used if a path for storing the recently opened files was set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenButtonSettings
impl RefUnwindSafe for OpenButtonSettings
impl !Send for OpenButtonSettings
impl !Sync for OpenButtonSettings
impl Unpin for OpenButtonSettings
impl UnwindSafe for OpenButtonSettings
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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