[][src]Struct newt::grid::SimpleWindow

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

Create a simple window for a single Component.

Implementations

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

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

Create a new SimpleWindow grid.

  • text - A text component to be displayed at the top of the window.
  • middle - A single component 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 SimpleWindow<'a>[src]

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

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for SimpleWindow<'a>

impl<'a> !UnwindSafe for SimpleWindow<'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]