pub struct DynamicBorder { /* private fields */ }Expand description
A single-row horizontal rule (─ repeated to width) in a chosen color.
None resolves to the low-contrast border_muted theme token and is also
rendered faint, so command separators never compete with the editor border.
Explicit colors remain full strength for intentional accent components.
Implementations§
Source§impl DynamicBorder
impl DynamicBorder
Sourcepub fn with_color(color: Color) -> Self
pub fn with_color(color: Color) -> Self
Create a border with an explicit color.
Trait Implementations§
Source§impl Component for DynamicBorder
impl Component for DynamicBorder
Source§fn render(&self, width: usize) -> Vec<String>
fn render(&self, width: usize) -> Vec<String>
Render the component to lines for the given viewport width. Read more
Source§fn invalidate(&self)
fn invalidate(&self)
Invalidate any cached rendering state.
Called when theme changes or when component needs to re-render from scratch.
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Downcast to Any for runtime type checking.
This enables the layout system to check for LayoutNodeProvider.
Source§fn handle_input(&self, _data: &str) -> bool
fn handle_input(&self, _data: &str) -> bool
Optional handler for keyboard input when component has focus. Read more
Source§fn wants_key_release(&self) -> bool
fn wants_key_release(&self) -> bool
If true, component receives key release events (Kitty protocol).
Default is false - release events are filtered out.
Auto Trait Implementations§
impl Freeze for DynamicBorder
impl RefUnwindSafe for DynamicBorder
impl Send for DynamicBorder
impl Sync for DynamicBorder
impl Unpin for DynamicBorder
impl UnsafeUnpin for DynamicBorder
impl UnwindSafe for DynamicBorder
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