pub struct VisualFeedback { /* private fields */ }Expand description
Visual feedback state for nodes
Implementations§
Source§impl VisualFeedback
impl VisualFeedback
Sourcepub fn is_selected(&self) -> bool
pub fn is_selected(&self) -> bool
Check if node is selected
Sourcepub fn is_hovered(&self) -> bool
pub fn is_hovered(&self) -> bool
Check if node is hovered
Sourcepub fn is_highlighted(&self) -> bool
pub fn is_highlighted(&self) -> bool
Check if node is highlighted
Sourcepub fn animation_progress(&self) -> f64
pub fn animation_progress(&self) -> f64
Get animation progress (0.0 to 1.0)
Sourcepub fn set_selected(&mut self, selected: bool)
pub fn set_selected(&mut self, selected: bool)
Set selection state
Sourcepub fn set_hovered(&mut self, hovered: bool)
pub fn set_hovered(&mut self, hovered: bool)
Set hover state
Sourcepub fn set_highlighted(&mut self, highlighted: bool)
pub fn set_highlighted(&mut self, highlighted: bool)
Set highlight state
Sourcepub fn set_animation_progress(&mut self, progress: f64)
pub fn set_animation_progress(&mut self, progress: f64)
Set animation progress
Sourcepub fn has_any_state(&self) -> bool
pub fn has_any_state(&self) -> bool
Check if any visual state is active
Trait Implementations§
Source§impl Clone for VisualFeedback
impl Clone for VisualFeedback
Source§fn clone(&self) -> VisualFeedback
fn clone(&self) -> VisualFeedback
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 VisualFeedback
impl Debug for VisualFeedback
Source§impl Default for VisualFeedback
impl Default for VisualFeedback
Source§fn default() -> VisualFeedback
fn default() -> VisualFeedback
Returns the “default value” for a type. Read more
Source§impl PartialEq for VisualFeedback
impl PartialEq for VisualFeedback
impl StructuralPartialEq for VisualFeedback
Auto Trait Implementations§
impl Freeze for VisualFeedback
impl RefUnwindSafe for VisualFeedback
impl Send for VisualFeedback
impl Sync for VisualFeedback
impl Unpin for VisualFeedback
impl UnwindSafe for VisualFeedback
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