My Elma Project
An event loop manager for embedded systems
 All Classes Functions
Public Member Functions | List of all members
stopwatch::UserInterface Class Reference

A user interface for the a StopWatch object. More...

#include <user_interface.h>

+ Inheritance diagram for stopwatch::UserInterface:
+ Collaboration diagram for stopwatch::UserInterface:

Public Member Functions

 UserInterface (StopWatch &sw)
 
void init ()
 
void start ()
 
void show_time (int x, int y, high_resolution_clock::duration d)
 Display the time at the given x,y position on the screen.
 
void update ()
 Update the user interface by (a) reading keyboard input and (b) writing to the screen.
 
void stop ()
 

Detailed Description

A user interface for the a StopWatch object.

Definition at line 15 of file user_interface.h.

Constructor & Destructor Documentation

UserInterface::UserInterface ( StopWatch sw)

Create a new stopwatch user interface using curses

Parameters
swA reference to a StopWatch object

Definition at line 6 of file user_interface.cc.


The documentation for this class was generated from the following files: