pub enum ExpandIconStyle {
Arrow,
PlusMinus,
ChevronRight,
Custom {
collapsed: String,
expanded: String,
},
}Expand description
Style of the expand/collapse icon.
Determines the visual appearance of the icon used to expand and collapse tree nodes in the outliner.
Variants§
Arrow
Simple arrow style (▶ when collapsed, ▼ when expanded).
PlusMinus
Plus/minus signs (+ when collapsed, - when expanded).
ChevronRight
Chevron style (› when collapsed, ⌄ when expanded).
Custom
Custom strings for collapsed and expanded states.
§Example
use egui_arbor::ExpandIconStyle;
let style = ExpandIconStyle::Custom {
collapsed: "→".to_string(),
expanded: "↓".to_string(),
};Implementations§
Source§impl ExpandIconStyle
impl ExpandIconStyle
Sourcepub fn collapsed_str(&self) -> &str
pub fn collapsed_str(&self) -> &str
Get the string representation for the collapsed state.
§Returns
The string to display when a node is collapsed.
Sourcepub fn expanded_str(&self) -> &str
pub fn expanded_str(&self) -> &str
Get the string representation for the expanded state.
§Returns
The string to display when a node is expanded.
Trait Implementations§
Source§impl Clone for ExpandIconStyle
impl Clone for ExpandIconStyle
Source§fn clone(&self) -> ExpandIconStyle
fn clone(&self) -> ExpandIconStyle
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 ExpandIconStyle
impl Debug for ExpandIconStyle
Source§impl Default for ExpandIconStyle
impl Default for ExpandIconStyle
Source§impl PartialEq for ExpandIconStyle
impl PartialEq for ExpandIconStyle
impl Eq for ExpandIconStyle
impl StructuralPartialEq for ExpandIconStyle
Auto Trait Implementations§
impl Freeze for ExpandIconStyle
impl RefUnwindSafe for ExpandIconStyle
impl Send for ExpandIconStyle
impl Sync for ExpandIconStyle
impl Unpin for ExpandIconStyle
impl UnwindSafe for ExpandIconStyle
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