Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Menus/UI/UI.h
- Committer:
- el17ajf
- Date:
- 2019-04-03
- Revision:
- 21:62d2b5b73160
- Parent:
- 17:cc448ab7266f
- Child:
- 25:bf47fe41883a
File content as of revision 21:62d2b5b73160:
#ifndef UI_H
#define UI_H
namespace Menus {
class UI {
public:
UI();
~UI();
void reset();
void clear();
void drawTitle(const char * text);
void drawLabel(const char * text);
bool drawAndCheckButton(const char * text);
void selectNextButton();
void selectPreviousButton();
void pressButton();
void newLine();
private:
const int PADDING_X = 3;
const int PADDING_Y = 3;
const int LINE_PADDING = 3;
int nextYPos;
int nextY();
int buttonCurrentlySelected;
int buttonCurrentlyDrawing;
bool buttonPressedFrame;
};
};
#endif
