Struct newt::grid::BasicWindow
source · [−]pub struct BasicWindow<'a> { /* private fields */ }
Expand description
Create a simple window using sub-grids.
Implementations
sourceimpl<'a> BasicWindow<'a>
impl<'a> BasicWindow<'a>
sourcepub fn new(
text: &'a dyn Component,
middle: &'a dyn Component,
buttons: &'a dyn Component
) -> BasicWindow<'a>
pub fn new(
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
sourceimpl<'a> Component for BasicWindow<'a>
impl<'a> Component for BasicWindow<'a>
sourcefn co(&self) -> newtComponent
fn co(&self) -> newtComponent
Return newtComponent
pointer.
sourceimpl<'a> Drop for BasicWindow<'a>
impl<'a> Drop for BasicWindow<'a>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more