[][src]Struct cursive::views::Panel

pub struct Panel<V> { /* fields omitted */ }

Draws a border around a wrapped view.

Implementations

impl<V> Panel<V>[src]

pub fn new(view: V) -> Panel<V>[src]

Creates a new panel around the given view.

pub fn title<S>(self, label: S) -> Panel<V> where
    S: Into<String>, 
[src]

Sets the title of the dialog.

If not empty, it will be visible at the top.

pub fn set_title<S>(&mut self, label: S) where
    S: Into<String>, 
[src]

Sets the title of the dialog.

pub fn title_position(self, align: HAlign) -> Panel<V>[src]

Sets the horizontal position of the title in the dialog. The default position is HAlign::Center

pub fn set_title_position(&mut self, align: HAlign)[src]

Sets the horizontal position of the title in the dialog. The default position is HAlign::Center

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

Gets access to the inner view.

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

Gets mutable access to the inner view.

Trait Implementations

impl<V> Debug for Panel<V> where
    V: Debug
[src]

impl<V> Default for Panel<V> where
    V: Default
[src]

impl<V> ViewWrapper for Panel<V> where
    V: View
[src]

type V = V

Type that this view wraps.

Auto Trait Implementations

impl<V> RefUnwindSafe for Panel<V> where
    V: RefUnwindSafe
[src]

impl<V> Send for Panel<V> where
    V: Send
[src]

impl<V> Sync for Panel<V> where
    V: Sync
[src]

impl<V> Unpin for Panel<V> where
    V: Unpin
[src]

impl<V> UnwindSafe for Panel<V> where
    V: 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]