pub struct VertRule {
pub sep_char: SepChar,
/* private fields */
}Expand description
A vertical line on screen, useful, for example, for the separation
of a Buffer and LineNumbers.
By default, this VertRule will show the '│' character on the
whole line, using the "default.VertRule" form. However, you can
change that with the VertRule::sep_char field.
This field, of type SepChar, can have up to 3 distinct
characters, in order to differentiate between the main line’s
separator and even the separators above and below the main line.
If the main character is not the same as the other two characters,
then the line will be printed with the "rule.upper" and
"rule.lower" forms for the characters above and below.
Fields§
§sep_char: SepCharImplementations§
Source§impl VertRule
impl VertRule
Sourcepub fn builder() -> VertRuleBuilder
pub fn builder() -> VertRuleBuilder
Returns a VertRuleBuilder, letting you push your own
VertRules around
Trait Implementations§
Source§impl Widget for VertRule
impl Widget for VertRule
Source§fn needs_update(&self, pa: &Pass) -> bool
fn needs_update(&self, pa: &Pass) -> bool
Source§fn on_mouse_event(pa: &mut Pass, handle: &Handle<Self>, event: MouseEvent)where
Self: Sized,
fn on_mouse_event(pa: &mut Pass, handle: &Handle<Self>, event: MouseEvent)where
Self: Sized,
How to handle a
MouseEvent Read moreSource§fn print_opts(&self) -> PrintOpts
fn print_opts(&self) -> PrintOpts
Auto Trait Implementations§
impl Freeze for VertRule
impl !RefUnwindSafe for VertRule
impl Send for VertRule
impl Sync for VertRule
impl Unpin for VertRule
impl UnsafeUnpin for VertRule
impl !UnwindSafe for VertRule
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