pub struct CustomPaneCtx<'a> {
pub mode: DialogMode,
pub cwd: &'a Path,
pub selected_entry_ids: &'a [EntryId],
pub selected_paths: &'a [PathBuf],
pub selected_files_count: usize,
pub selected_dirs_count: usize,
pub save_name: &'a str,
pub active_filter: Option<&'a FileFilter>,
}Expand description
Context passed to a CustomPane while rendering.
This is a read-only view of the dialog state relevant for building IGFD-style extra widgets (per-filter options, validation, etc).
Fields§
§mode: DialogModeDialog mode.
cwd: &'a PathCurrent working directory.
selected_entry_ids: &'a [EntryId]Selected entry IDs in deterministic selection order.
selected_paths: &'a [PathBuf]Selected entry paths in deterministic selection order.
selected_files_count: usizeNumber of selected files in the current snapshot.
selected_dirs_count: usizeNumber of selected directories in the current snapshot.
save_name: &'a strCurrent save filename buffer (SaveFile mode).
active_filter: Option<&'a FileFilter>Active filter (None = “All files”).
Trait Implementations§
Source§impl<'a> Clone for CustomPaneCtx<'a>
impl<'a> Clone for CustomPaneCtx<'a>
Source§fn clone(&self) -> CustomPaneCtx<'a>
fn clone(&self) -> CustomPaneCtx<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CustomPaneCtx<'a>
impl<'a> Debug for CustomPaneCtx<'a>
impl<'a> Copy for CustomPaneCtx<'a>
Auto Trait Implementations§
impl<'a> Freeze for CustomPaneCtx<'a>
impl<'a> RefUnwindSafe for CustomPaneCtx<'a>
impl<'a> Send for CustomPaneCtx<'a>
impl<'a> Sync for CustomPaneCtx<'a>
impl<'a> Unpin for CustomPaneCtx<'a>
impl<'a> UnsafeUnpin for CustomPaneCtx<'a>
impl<'a> UnwindSafe for CustomPaneCtx<'a>
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