Trait panorama::ui::windows::Window[][src]

pub trait Window: HandlesInput {
    fn name(&self) -> String;
#[must_use] fn draw<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        f: &'life1 mut Frame<'life2, &'life3 mut Stdout>,
        area: Rect,
        ui: &'life4 UI
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
; #[must_use] fn update<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Required methods

fn name(&self) -> String[src]

Return some kind of name

#[must_use]fn draw<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
    &'life0 self,
    f: &'life1 mut Frame<'life2, &'life3 mut Stdout>,
    area: Rect,
    ui: &'life4 UI
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    Self: 'async_trait, 
[src]

Main draw function

Loading content...

Provided methods

#[must_use]fn update<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Update function

Loading content...

Implementations

impl dyn Window[src]

pub fn is<__T: Window>(&self) -> bool[src]

Returns true if the trait object wraps an object of type __T.

pub fn downcast<__T: Window>(self: Box<Self>) -> Result<Box<__T>, Box<Self>>[src]

Returns a boxed object from a boxed trait object if the underlying object is of type __T. Returns the original boxed trait if it isn't.

pub fn downcast_rc<__T: Window>(self: Rc<Self>) -> Result<Rc<__T>, Rc<Self>>[src]

Returns an Rc-ed object from an Rc-ed trait object if the underlying object is of type __T. Returns the original Rc-ed trait if it isn't.

pub fn downcast_ref<__T: Window>(&self) -> Option<&__T>[src]

Returns a reference to the object within the trait object if it is of type __T, or None if it isn't.

pub fn downcast_mut<__T: Window>(&mut self) -> Option<&mut __T>[src]

Returns a mutable reference to the object within the trait object if it is of type __T, or None if it isn't.

Implementors

impl Window for MailView[src]

Loading content...