[][src]Struct cursive::views::TrackedView

pub struct TrackedView<T> {
    pub view: T,
    // some fields omitted
}

Wrapper around a view that remembers its position.

Fields

view: T

Wrapped view.

Implementations

impl<T> TrackedView<T>[src]

pub fn offset(&self) -> XY<usize>[src]

Return the last offset at which the view was drawn.

pub fn new(view: T) -> TrackedView<T>[src]

Creates a new TrackedView around view.

pub fn get_inner(&self) -> &T[src]

Gets access to the inner view.

pub fn get_inner_mut(&mut self) -> &mut T[src]

Gets mutable access to the inner view.

Trait Implementations

impl<T> Default for TrackedView<T> where
    T: Default
[src]

impl<T> ViewWrapper for TrackedView<T> where
    T: View
[src]

type V = T

Type that this view wraps.

Auto Trait Implementations

impl<T> !RefUnwindSafe for TrackedView<T>[src]

impl<T> Send for TrackedView<T> where
    T: Send
[src]

impl<T> !Sync for TrackedView<T>[src]

impl<T> Unpin for TrackedView<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for TrackedView<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AnyView for T where
    T: View
[src]

pub fn as_any(&self) -> &(dyn Any + 'static)[src]

Downcast self to a Any.

pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]

Downcast self to a mutable Any.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Finder for T where
    T: View
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoBoxedView for T where
    T: View
[src]

impl<T> Nameable for T where
    T: View
[src]

impl<T> Resizable for T where
    T: View
[src]

impl<T> Scrollable for T where
    T: View
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> View for T where
    T: ViewWrapper
[src]

impl<T> With for T[src]