[−][src]Struct newt::grid::BasicWindow
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]
text: &'a dyn Component,
middle: &'a dyn Component,
buttons: &'a dyn Component
) -> BasicWindow<'a>
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]
fn co(&self) -> newtComponent
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WidgetFns for T where
T: Grid,
[src]
T: Grid,