[][src]Struct cursive::views::Layer

pub struct Layer<T: View> { /* fields omitted */ }

Wrapper view that fills the background.

Used as layer in the StackView.

Methods

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

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

Wraps the given 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: View> ViewWrapper for Layer<T>[src]

type V = T

Type that this view wraps.

fn wrap_required_size(&mut self, req: Vec2) -> Vec2[src]

Wraps the required_size method.

fn wrap_on_event(&mut self, ch: Event) -> EventResult[src]

Wraps the on_event method.

fn wrap_layout(&mut self, size: Vec2)[src]

Wraps the layout method.

fn wrap_take_focus(&mut self, source: Direction) -> bool[src]

Wraps the take_focus method.

fn wrap_call_on_any<'a>(&mut self, selector: &Selector, callback: AnyCb<'a>)[src]

Wraps the find method.

fn wrap_focus_view(&mut self, selector: &Selector) -> Result<(), ()>[src]

Wraps the focus_view method.

fn wrap_needs_relayout(&self) -> bool[src]

Wraps the needs_relayout method.

fn wrap_important_area(&self, size: Vec2) -> Rect[src]

Wraps the important_area method.

impl<T: Debug + View> Debug for Layer<T>[src]

Auto Trait Implementations

impl<T> Sync for Layer<T> where
    T: Sync

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

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

impl<T> RefUnwindSafe for Layer<T> where
    T: RefUnwindSafe

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

Blanket Implementations

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.

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

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

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

impl<T> Erased for T[src]