[][src]Struct newt::grid::BasicWindow

pub struct BasicWindow<'a> { /* fields omitted */ }

Create a simple window using sub-grids.

Implementations

impl<'a> BasicWindow<'a>[src]

pub fn new(
    text: &'a dyn Component,
    middle: &'a dyn Component,
    buttons: &'a dyn Component
) -> BasicWindow<'a>
[src]

Create a new BasicWindow grid.

  • text - A text component to be displayed at the top of the window.
  • middle - A sub-grid to display in the middle of the window.
  • buttons - A sub-grid to display at the bottom of the window, hopefully containing buttons.

Trait Implementations

impl<'a> Component for BasicWindow<'a>[src]

impl<'a> Drop for BasicWindow<'a>[src]

impl<'a> GridFns for BasicWindow<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for BasicWindow<'a>

impl<'a> !Send for BasicWindow<'a>

impl<'a> !Sync for BasicWindow<'a>

impl<'a> Unpin for BasicWindow<'a>

impl<'a> !UnwindSafe for BasicWindow<'a>

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> 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> WidgetFns for T where
    T: Grid, 
[src]