Track when AISView has focus.

This commit is contained in:
Jared Boone
2015-12-05 14:23:53 -08:00
parent 1c191bcd4f
commit 27684069c5
2 changed files with 19 additions and 0 deletions
+9
View File
@@ -118,14 +118,23 @@ namespace ui {
class AISView : public View {
public:
AISView() {
flags.focusable = true;
}
void on_show() override;
void on_hide() override;
void paint(Painter& painter) override;
void on_focus() override;
void on_blur() override;
private:
AISModel model;
bool has_focus = false;
struct Position {
rtc::RTC timestamp { };
baseband::ais::Latitude latitude { 0 };