|
SatCat5
|
Service for forwarding Log events to a display adapter.
Definition at line 250 of file gui_display.h.
#include <gui_display.h>
Public Member Functions | |
| LogToDisplay (satcat5::gui::Canvas *canvas, const satcat5::gui::LogColors &colors, u16 row_min=0, u16 row_count=0) | |
| Link this log service to the designated display/canvas. More... | |
| void | log_event (s8 priority, unsigned nbytes, const char *msg) override |
| Implement the required API from log::EventHandler. | |
| void | set_colors (const satcat5::gui::LogColors &colors) |
| Adjust color parameters. | |
Protected Attributes | |
| satcat5::gui::Canvas *const | m_canvas |
| satcat5::gui::LogColors | m_colors |
| const u16 | m_row_min |
| const u16 | m_row_count |
| u16 | m_row_next |
Private Attributes | |
| satcat5::log::EventHandler * | m_next |
| LogToDisplay::LogToDisplay | ( | satcat5::gui::Canvas * | canvas, |
| const satcat5::gui::LogColors & | colors, | ||
| u16 | row_min = 0, |
||
| u16 | row_count = 0 |
||
| ) |
Link this log service to the designated display/canvas.
By default, logs are written from top-to-bottom using the entire display as a circular buffer. Alternately, use the row_min and row_count parameters to restrict the viewport.
Definition at line 306 of file gui_display.cc.