pub struct LineNumberState {
pub area: Rect,
pub inner: Rect,
pub start: upos_type,
pub mouse: MouseFlags,
pub non_exhaustive: NonExhaustive,
}Expand description
State
Fields§
§area: Rect§inner: Rect§start: upos_typeFirst rendered line-number
mouse: MouseFlagsHelper for mouse.
non_exhaustive: NonExhaustiveImplementations§
Trait Implementations§
Source§impl Clone for LineNumberState
impl Clone for LineNumberState
Source§impl Debug for LineNumberState
impl Debug for LineNumberState
Source§impl Default for LineNumberState
impl Default for LineNumberState
Source§impl HandleEvent<Event, MouseOnly, Outcome> for LineNumberState
impl HandleEvent<Event, MouseOnly, Outcome> for LineNumberState
Source§impl HandleEvent<Event, Regular, Outcome> for LineNumberState
impl HandleEvent<Event, Regular, Outcome> for LineNumberState
Source§impl HasFocus for LineNumberState
impl HasFocus for LineNumberState
Source§fn build(&self, _builder: &mut FocusBuilder)
fn build(&self, _builder: &mut FocusBuilder)
Build the focus-structure for the container/widget.
Build the focus-structure for the container/widget. Read more
Declares how the widget interacts with focus. Read more
Source§fn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Does this widget have the focus or if the flag is
used for a container, does any of widgets inside
the container have the focus. Read more
Source§fn lost_focus(&self) -> bool
fn lost_focus(&self) -> bool
This widget just lost the focus. Read more
Source§fn gained_focus(&self) -> bool
fn gained_focus(&self) -> bool
This widget just gained the focus. Read more
Source§fn is_obscured(&self) -> bool
fn is_obscured(&self) -> bool
This widget is not beneath the mouse-cursor. Read more
Source§impl HasScreenCursor for LineNumberState
impl HasScreenCursor for LineNumberState
Source§impl RelocatableState for LineNumberState
impl RelocatableState for LineNumberState
Source§fn relocate(&mut self, shift: (i16, i16), clip: Rect)
fn relocate(&mut self, shift: (i16, i16), clip: Rect)
Relocate the areas in this widgets state. Read more
Source§fn relocate_popup(&mut self, shift: (i16, i16), clip: Rect)
fn relocate_popup(&mut self, shift: (i16, i16), clip: Rect)
Relocate only popup areas.
As rendering the popups is a separate render,
this has to be separate too.
Relocate all popup areas to a clip-rect (0,0+0x0).
Relocate all areas to a clip-rect (0,0+0x0).
Auto Trait Implementations§
impl !Freeze for LineNumberState
impl !RefUnwindSafe for LineNumberState
impl !Sync for LineNumberState
impl Forget for LineNumberState
impl Move for LineNumberState
impl Send for LineNumberState
impl Unpin for LineNumberState
impl UnsafeUnpin for LineNumberState
impl UnwindSafe for LineNumberState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more