Skip to main content

FileDialogUiConfig

Struct FileDialogUiConfig 

Source
pub struct FileDialogUiConfig {
Show 25 fields pub header_style: HeaderStyle, pub layout: LayoutStyle, pub validation_buttons: ValidationButtonsConfig, pub toolbar: ToolbarConfig, pub places_pane_shown: bool, pub places_pane_width: f32, pub file_list_view: FileListViewMode, pub file_list_columns: FileListColumnsConfig, pub path_bar_style: PathBarStyle, pub breadcrumbs_quick_select: bool, pub breadcrumbs_max_segments: usize, pub empty_hint_enabled: bool, pub empty_hint_color: [f32; 4], pub empty_hint_static_message: Option<String>, pub new_folder_enabled: bool, pub file_style_fonts: HashMap<String, FontId>, pub file_styles: FileStyleRegistry, pub thumbnails_enabled: bool, pub thumbnail_size: [f32; 2], pub type_select_enabled: bool, pub type_select_timeout: Duration, pub custom_pane_enabled: bool, pub custom_pane_dock: CustomPaneDock, pub custom_pane_height: f32, pub custom_pane_width: f32,
}
Expand description

Caller-facing configuration for the in-UI file dialog.

This Module Interface contains durable UI knobs that callers may configure before or during a frame. Transient buffers, focus requests, modal state, and operation jobs stay in FileDialogUiState.

Fields§

§header_style: HeaderStyle

Header layout style.

§layout: LayoutStyle

Layout style for the dialog UI.

§validation_buttons: ValidationButtonsConfig

Validation button row configuration (Ok/Cancel).

§toolbar: ToolbarConfig

Top toolbar (“chrome”) configuration.

§places_pane_shown: bool

Whether to show the left “Places” pane in LayoutStyle::Standard.

§places_pane_width: f32

Width of the left “Places” pane in pixels (Standard layout only).

§file_list_view: FileListViewMode

File list view mode (list vs grid).

§file_list_columns: FileListColumnsConfig

List-view column visibility configuration.

§path_bar_style: PathBarStyle

Path bar style (editable text input vs breadcrumb-style composer).

§breadcrumbs_quick_select: bool

Enable quick parallel directory selection popups when clicking breadcrumb separators.

This mimics IGFD’s “quick path selection” feature in the path composer.

§breadcrumbs_max_segments: usize

Max breadcrumb segments to display (compress with ellipsis when exceeded).

§empty_hint_enabled: bool

Show a hint row when no entries match filters/search.

§empty_hint_color: [f32; 4]

RGBA color of the empty hint text.

§empty_hint_static_message: Option<String>

Custom static hint message when entries list is empty; if None, a default message is built.

§new_folder_enabled: bool

Whether to show and allow the “New Folder” action.

§file_style_fonts: HashMap<String, FontId>

Optional font mapping used by file style font_token.

§file_styles: FileStyleRegistry

Style registry used to decorate the file list (icons/colors/tooltips).

§thumbnails_enabled: bool

Enable thumbnails in the file list (adds a Preview column).

§thumbnail_size: [f32; 2]

Thumbnail preview size in pixels.

§type_select_enabled: bool

Enable “type-to-select” behavior in the file list (IGFD-style).

§type_select_timeout: Duration

Timeout after which the type-to-select buffer resets.

§custom_pane_enabled: bool

Whether to render a custom pane region (when a pane is provided by the caller).

§custom_pane_dock: CustomPaneDock

Dock position for the custom pane.

§custom_pane_height: f32

Height of the custom pane region (in pixels).

§custom_pane_width: f32

Width of the custom pane region when right-docked (in pixels).

Implementations§

Source§

impl FileDialogUiConfig

Source

pub fn apply_igfd_classic_preset(&mut self)

Applies an “IGFD classic” configuration preset (opt-in).

This tunes durable UI knobs to feel closer to ImGuiFileDialog (IGFD) while staying Rust-first.

Trait Implementations§

Source§

impl Debug for FileDialogUiConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FileDialogUiConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more