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 get_print_opts(&self) -> PrintOpts
fn get_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 !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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.