pub struct VertRule { /* private fields */ }Expand description
A vertical line on screen, useful, for example, for the separation
of a File and LineNumbers.
By default, this VertRule will show the '│' character on the
whole line, using the "default" form. However, with the
following options:
VertRuleCfg::with_main_charVertRuleCfg::with_char_aboveVertRuleCfg::with_char_belowVertRuleCfg::with_char
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.
If you want them to have the same characer, but printing with
these different forms, you can just call with_main_char and
set it to the same character.
Trait Implementations§
Source§impl Widget<Ui> for VertRule
impl Widget<Ui> for VertRule
Source§type Cfg = VertRuleCfg
type Cfg = VertRuleCfg
The configuration type
Source§fn once() -> Result<(), Text>
fn once() -> Result<(), Text>
Actions taken when this widget opens for the first time Read more
Source§fn on_focus(pa: &mut Pass, handle: Handle<Self, U>)where
Self: Sized,
fn on_focus(pa: &mut Pass, handle: Handle<Self, U>)where
Self: Sized,
Actions to do whenever this
Widget is focusedAuto 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