pub struct WindowHostConfig {
pub title: String,
pub initial_size: [f32; 2],
pub size_condition: Condition,
pub min_size: Option<[f32; 2]>,
pub max_size: Option<[f32; 2]>,
}Expand description
Configuration for hosting the file browser in an ImGui window.
Fields§
§title: StringWindow title
initial_size: [f32; 2]Initial window size (used with size_condition)
size_condition: ConditionCondition used when setting the window size
min_size: Option<[f32; 2]>Optional minimum size constraint.
max_size: Option<[f32; 2]>Optional maximum size constraint.
Implementations§
Source§impl WindowHostConfig
impl WindowHostConfig
Sourcepub fn for_mode(mode: DialogMode) -> Self
pub fn for_mode(mode: DialogMode) -> Self
Default window host configuration for the given dialog mode.
Trait Implementations§
Source§impl Clone for WindowHostConfig
impl Clone for WindowHostConfig
Source§fn clone(&self) -> WindowHostConfig
fn clone(&self) -> WindowHostConfig
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 moreAuto Trait Implementations§
impl Freeze for WindowHostConfig
impl RefUnwindSafe for WindowHostConfig
impl Send for WindowHostConfig
impl Sync for WindowHostConfig
impl Unpin for WindowHostConfig
impl UnsafeUnpin for WindowHostConfig
impl UnwindSafe for WindowHostConfig
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