pub struct FileDialogUiState {
pub visible: bool,
pub config: FileDialogUiConfig,
pub thumbnails: ThumbnailCache,
/* private fields */
}Expand description
UI-only state for hosting a FileDialogCore in Dear ImGui.
This struct contains transient UI state (visibility, focus requests, text buffers) and owns the
caller-facing FileDialogUiConfig. It does not affect the core selection/navigation
semantics.
Fields§
§visible: boolWhether to draw the dialog (show/hide). Prefer FileDialogState::open/FileDialogState::close.
config: FileDialogUiConfigCaller-facing UI configuration.
thumbnails: ThumbnailCacheThumbnail cache (requests + LRU).
Implementations§
Source§impl FileDialogUiState
impl FileDialogUiState
Sourcepub fn apply_igfd_classic_preset(&mut self)
pub fn apply_igfd_classic_preset(&mut self)
Applies an “IGFD classic” UI preset (opt-in).
This tunes UI defaults to feel closer to ImGuiFileDialog (IGFD) while staying Rust-first:
- standard layout with places pane,
- IGFD-like single-row header layout,
- list view as the default,
- right-docked custom pane (when provided) with a splitter-resizable width,
- dialog-style button row aligned to the right.
Trait Implementations§
Source§impl Debug for FileDialogUiState
impl Debug for FileDialogUiState
Auto Trait Implementations§
impl Freeze for FileDialogUiState
impl !RefUnwindSafe for FileDialogUiState
impl !Send for FileDialogUiState
impl !Sync for FileDialogUiState
impl Unpin for FileDialogUiState
impl UnsafeUnpin for FileDialogUiState
impl !UnwindSafe for FileDialogUiState
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