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

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

Wrapper around a view that remembers its position.

Fields

view: T

Wrapped view.

Implementations

impl<T: View> TrackedView<T>[src]

pub fn offset(&self) -> Vec2[src]

Return the last offset at which the view was drawn.

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

Creates a new TrackedView around view.

pub fn with_id(self, id: &str) -> NamedView<Self>[src]

Deprecated:

with_id is being renamed to with_name

Same as with_name

pub fn with_name(self, name: &str) -> NamedView<Self>[src]

Wraps itself in a NamedView for easy retrieval.

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: View> ViewWrapper for TrackedView<T>[src]

type V = T

Type that this view wraps.

Auto Trait Implementations

impl<T> !RefUnwindSafe for TrackedView<T>

impl<T> Send for TrackedView<T> where
    T: Send

impl<T> !Sync for TrackedView<T>

impl<T> Unpin for TrackedView<T> where
    T: Unpin

impl<T> UnwindSafe for TrackedView<T> where
    T: UnwindSafe

Blanket Implementations

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

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[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.