Public Member Functions |
| | GuiClass () |
| virtual | ~GuiClass () |
| void | setSketch (Sketch *_sketch) |
| Page * | currentPage () |
| void | setPage (Page *page) |
| void | pushPage (Page *page) |
| void | popPage () |
| void | popPage (Page *page) |
| void | addEventHandler (event_handler_t handler) |
| void | removeEventHandler (event_handler_t handler) |
| void | addTask (Task *task) |
| void | removeTask (Task *task) |
| virtual void | loop () |
| void | display () |
| void | redisplay () |
| void | put_value (uint8_t idx, uint8_t value) |
| void | put_value (uint8_t idx, int value) |
| void | put_value16 (uint8_t idx, uint16_t value) |
| void | put_valuex (uint8_t idx, uint8_t value) |
| void | put_value_at (uint8_t idx, uint8_t value) |
| void | put_value_at (uint8_t idx, int value) |
| void | put_value16_at (uint8_t idx, uint16_t value) |
| void | put_valuex_at (uint8_t idx, uint8_t value) |
| void | put_string (uint8_t idx, const char *str) |
| void | put_p_string (uint8_t idx, PGM_P str) |
| void | put_string (const char *str) |
| void | put_p_string (PGM_P str) |
| void | put_string_fill (uint8_t idx, const char *str) |
| void | put_string_fill (const char *str) |
| void | put_p_string_fill (uint8_t idx, PGM_P str) |
| void | put_p_string_fill (PGM_P str) |
| void | put_string_at (uint8_t idx, const char *str) |
| void | put_p_string_at (uint8_t idx, PGM_P str) |
| void | put_string_at_fill (uint8_t idx, const char *str) |
| void | put_p_string_at_fill (uint8_t idx, PGM_P str) |
| void | printf (const char *fmt,...) |
| void | printf_fill (const char *fmt,...) |
| void | printf_at (uint8_t idx, const char *fmt,...) |
| void | printf_at_fill (uint8_t idx, const char *fmt,...) |
| void | flash (uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_put_value (uint8_t idx, uint8_t value, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_put_value16 (uint8_t idx, uint16_t value, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_put_valuex (uint8_t idx, uint8_t value, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_put_value_at (uint8_t idx, uint8_t value, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_put_value16_at (uint8_t idx, uint16_t value, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_put_valuex_at (uint8_t idx, uint8_t value, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_string (const char *str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_p_string (PGM_P str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_string_fill (const char *str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_p_string_fill (PGM_P str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_string_at (uint8_t idx, const char *str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_p_string_at (uint8_t idx, PGM_P str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_string_at_fill (uint8_t idx, const char *str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_p_string_at_fill (uint8_t idx, PGM_P str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_string_clear (const char *str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_p_string_clear (const char *str, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_strings_fill (const char *str1, const char *str2, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_p_strings_fill (PGM_P str1, PGM_P str2, uint16_t duration=DEFAULT_FLASH_DURATION) |
| void | flash_printf (const char *fmt,...) |
| void | flash_printf_fill (const char *fmt,...) |
| void | flash_printf_at (uint8_t idx, const char *fmt,...) |
| void | flash_printf_at_fill (uint8_t idx, const char *fmt,...) |
| void | setLine (const uint8_t line) |
| void | clearLine () |
| void | clearFlashLine () |
| void | clearFlash (uint16_t duration=DEFAULT_FLASH_DURATION) |
| | GuiClass () |
| void | poll () |
| void | clear () |
| void | update () |
| void | put_value (uint8_t idx, uint8_t value) |
| void | put_value16 (uint8_t idx, uint16_t value) |
| void | put_valuex (uint8_t idx, uint8_t value) |
| void | put_string (uint8_t idx, char *str) |
| void | put_p_string (uint8_t idx, PGM_P str) |
| void | setLine (uint8_t line) |
Public Attributes |
| line_t | lines [2] |
| uint8_t | curLine |
| Vector< event_handler_t, 4 > | eventHandlers |
| Vector< Task *, 8 > | tasks |
| Sketch * | sketch |
| void(* | handleButtons )() |
| SR165Class | SR165 |
| EncodersClass | Encoders |
| ButtonsClass | Buttons |
Static Public Attributes |
| static const uint8_t | NUM_BUTTONS = GUI_NUM_BUTTONS |
| static const uint8_t | LINE1 = 0 |
| static const uint8_t | LINE2 = 1 |
The GUI class acting as a frontend to the display system. This class is used to:
Although some methods are declared virtual, there is usually no need to subclass the GUI class.