pub struct SelectionStyle {
pub selected_border_color: Color,
pub selected_border_width: f32,
pub box_select_fill: Color,
pub box_select_border: Color,
pub edge_cutting_color: Color,
pub hover_glow_color: Color,
pub hover_glow_radius: f32,
}Expand description
Style configuration for node selection and hover highlighting.
Fields§
§selected_border_color: ColorBorder color for selected nodes
selected_border_width: f32Border width for selected nodes
box_select_fill: ColorFill color for the box selection rectangle (semi-transparent)
box_select_border: ColorBorder color for the box selection rectangle
edge_cutting_color: ColorColor for the edge cutting line
hover_glow_color: ColorColor for hover glow effect on nodes
hover_glow_radius: f32Radius for hover glow effect in world units
Implementations§
Source§impl SelectionStyle
impl SelectionStyle
pub fn new() -> Self
pub fn selected_border_color(self, color: Color) -> Self
pub fn selected_border_width(self, width: f32) -> Self
pub fn box_select_fill(self, color: Color) -> Self
pub fn box_select_border(self, color: Color) -> Self
pub fn hover_glow_color(self, color: Color) -> Self
pub fn hover_glow_radius(self, radius: f32) -> Self
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Creates a selection style derived from an iced Theme.
Trait Implementations§
Source§impl Clone for SelectionStyle
impl Clone for SelectionStyle
Source§fn clone(&self) -> SelectionStyle
fn clone(&self) -> SelectionStyle
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 SelectionStyle
impl Debug for SelectionStyle
Source§impl Default for SelectionStyle
impl Default for SelectionStyle
Source§impl PartialEq for SelectionStyle
impl PartialEq for SelectionStyle
impl StructuralPartialEq for SelectionStyle
Auto Trait Implementations§
impl Freeze for SelectionStyle
impl RefUnwindSafe for SelectionStyle
impl Send for SelectionStyle
impl Sync for SelectionStyle
impl Unpin for SelectionStyle
impl UnwindSafe for SelectionStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.