Struct egui_tiles::SimplificationOptions
source · pub struct SimplificationOptions {
pub prune_empty_tabs: bool,
pub prune_empty_containers: bool,
pub prune_single_child_tabs: bool,
pub prune_single_child_containers: bool,
pub all_panes_must_have_tabs: bool,
pub join_nested_linear_containerss: bool,
}
Expand description
What are the rules for simplifying the tree?
Drag-dropping tiles can often leave containers empty, or with only a single child.
The SimplificationOptions
specifies what simplifications are allowed.
The Tree
will run a simplification pass each frame.
Fields§
§prune_empty_tabs: bool
Remove empty Tabs
containers?
prune_empty_containers: bool
Remove empty containers (that aren’t Tabs
)?
prune_single_child_tabs: bool
Remove Tabs
containers with only a single child?
Even if true
, Self::all_panes_must_have_tabs
will be respected.
prune_single_child_containers: bool
Prune containers (that aren’t Tabs
) with only a single child?
all_panes_must_have_tabs: bool
If true, each pane will have a Tabs
container as a parent.
This will win out over Self::prune_single_child_tabs
.
join_nested_linear_containerss: bool
If a horizontal container contain another horizontal container, join them? Same for vertical containers. Does NOT apply to grid container or tab containers.
Trait Implementations§
source§impl Clone for SimplificationOptions
impl Clone for SimplificationOptions
source§fn clone(&self) -> SimplificationOptions
fn clone(&self) -> SimplificationOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SimplificationOptions
impl Debug for SimplificationOptions
source§impl Default for SimplificationOptions
impl Default for SimplificationOptions
source§impl Hash for SimplificationOptions
impl Hash for SimplificationOptions
source§impl PartialEq<SimplificationOptions> for SimplificationOptions
impl PartialEq<SimplificationOptions> for SimplificationOptions
source§fn eq(&self, other: &SimplificationOptions) -> bool
fn eq(&self, other: &SimplificationOptions) -> bool
self
and other
values to be equal, and is used
by ==
.