Struct cursive_core::views::ShadowView[][src]

pub struct ShadowView<T> { /* fields omitted */ }

Wrapper view that adds a shadow.

It reserves a 1 pixel border on each side.

Implementations

impl<T> ShadowView<T>[src]

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

Wraps the given view.

pub fn left_padding(mut self: Self, value: bool) -> Self[src]

If set, adds an empty column to the left of the view.

Default to true.

pub fn top_padding(mut self: Self, value: bool) -> Self[src]

If set, adds an empty row at the top of the view.

Default to true.

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 ShadowView<T> where
    T: Default
[src]

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

type V = T

Type that this view wraps.

Auto Trait Implementations

impl<T> RefUnwindSafe for ShadowView<T> where
    T: RefUnwindSafe
[src]

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

impl<T> Sync for ShadowView<T> where
    T: Sync
[src]

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

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

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.