mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-21 06:59:02 +00:00
Track when AISView has focus.
This commit is contained in:
@@ -405,6 +405,16 @@ void AISView::on_packet(const baseband::ais::Packet& packet) {
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void AISView::on_focus() {
|
||||
has_focus = true;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void AISView::on_blur() {
|
||||
has_focus = false;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void AISView::paint(Painter& painter) {
|
||||
const auto r = screen_rect();
|
||||
const auto& s = style();
|
||||
|
||||
Reference in New Issue
Block a user