basic ui
This commit is contained in:
parent
282a0dbc34
commit
793f8a8370
10 changed files with 320 additions and 102 deletions
18
driver/ui/view_info.h
Normal file
18
driver/ui/view_info.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef VIEW_INFO
|
||||
#define VIEW_INFO
|
||||
|
||||
#include "view.h"
|
||||
|
||||
class ViewInfo : public View
|
||||
{
|
||||
public:
|
||||
ViewInfo(void);
|
||||
virtual void draw(void) override;
|
||||
virtual std::function<void(int)> keypress(int& key) override;
|
||||
|
||||
private:
|
||||
constexpr static int text_offset_x = 2;
|
||||
constexpr static int text_offset_y = 3;
|
||||
};
|
||||
|
||||
#endif // VIEW_INFO
|
Loading…
Add table
Add a link
Reference in a new issue