[][src]Trait watchface::WatchFace

pub trait WatchFace {
    fn new() -> MynewtResult<Self>
    where
        Self: Sized
;
fn update(&mut self, state: &WatchFaceState) -> MynewtResult<()>; }

Watch Faces shall implement this trait

Required methods

fn new() -> MynewtResult<Self> where
    Self: Sized

Create the widgets for the Watch Face

fn update(&mut self, state: &WatchFaceState) -> MynewtResult<()>

Update the widgets in the Watch Face with the current state

Loading content...

Implementors

Loading content...