pub struct LayoutConfig {
pub max_depth: u16,
pub min_rect_size: f64,
pub padding: f64,
pub header_height: f64,
}Expand description
Configuration for the layout algorithm.
Fields§
§max_depth: u16Maximum depth to lay out (relative to visible root).
min_rect_size: f64Minimum rectangle dimension in pixels. Rectangles smaller than this are not subdivided further.
padding: f64Padding between directory boundaries (pixels per side).
header_height: f64Height reserved at the top of each directory for the name header (pixels). Set to 0.0 to disable directory headers.
Trait Implementations§
Source§impl Clone for LayoutConfig
impl Clone for LayoutConfig
Source§fn clone(&self) -> LayoutConfig
fn clone(&self) -> LayoutConfig
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 Debug for LayoutConfig
impl Debug for LayoutConfig
Auto Trait Implementations§
impl Freeze for LayoutConfig
impl RefUnwindSafe for LayoutConfig
impl Send for LayoutConfig
impl Sync for LayoutConfig
impl Unpin for LayoutConfig
impl UnsafeUnpin for LayoutConfig
impl UnwindSafe for LayoutConfig
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