Extract AIS RecentEntry painting into separate method.

Small steps in a larger refactor, and better selected-item-scrolls-off-the-bottom behavior.
This commit is contained in:
Jared Boone
2015-12-05 20:15:30 -08:00
parent 8fce9378cc
commit c4ad2ffe1b
2 changed files with 36 additions and 17 deletions
+7
View File
@@ -173,6 +173,13 @@ private:
void on_packet(const baseband::ais::Packet& packet);
bool draw_entry(
const RecentEntry& entry,
const Rect& target_rect,
Painter& painter,
const Style& s
);
void truncate_entries();
RecentEntries::iterator selected_entry();