pub struct TargetHighlightStyle {
pub border_char: char,
pub border_fg: PackedRgba,
pub background: Option<PackedRgba>,
pub animate_pulse: bool,
}Expand description
Visual style for highlighting drop targets during keyboard drag.
Fields§
§border_char: charBorder style (character to use for highlighting).
border_fg: PackedRgbaForeground color for the highlight border.
background: Option<PackedRgba>Background color for the target area.
animate_pulse: boolWhether to render a pulsing animation.
Implementations§
Source§impl TargetHighlightStyle
impl TargetHighlightStyle
Sourcepub fn invalid_default() -> Self
pub fn invalid_default() -> Self
Style for invalid drop targets.
Sourcepub fn new(border_char: char, fg: PackedRgba) -> Self
pub fn new(border_char: char, fg: PackedRgba) -> Self
Create a custom style.
Sourcepub fn with_background(self, bg: PackedRgba) -> Self
pub fn with_background(self, bg: PackedRgba) -> Self
Set background color.
Sourcepub fn with_pulse(self) -> Self
pub fn with_pulse(self) -> Self
Enable pulse animation.
Trait Implementations§
Source§impl Clone for TargetHighlightStyle
impl Clone for TargetHighlightStyle
Source§fn clone(&self) -> TargetHighlightStyle
fn clone(&self) -> TargetHighlightStyle
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 TargetHighlightStyle
impl Debug for TargetHighlightStyle
Auto Trait Implementations§
impl Freeze for TargetHighlightStyle
impl RefUnwindSafe for TargetHighlightStyle
impl Send for TargetHighlightStyle
impl Sync for TargetHighlightStyle
impl Unpin for TargetHighlightStyle
impl UnwindSafe for TargetHighlightStyle
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