|
SatCat5
|
Each "draw command" updates a rectangular region of pixels.
These objects are also used for internal state changes, but only draw and scroll commands are delivered to the Display.
Definition at line 61 of file gui_display.h.
#include <gui_display.h>
Public Member Functions | |
| constexpr | DrawCmd () |
| Construct an empty command. | |
| constexpr | DrawCmd (u8 opcode, u8 arg1, const DrawArg &arg2) |
| Construct a specific command. | |
| bool | rc (u16 r, u16 c) const |
| Get the new pixel value at the designated row and column. More... | |
| u16 | height () const |
| Size of the rectangular update region. | |
| u16 | width () const |
| Size of the rectangular update region. | |
Protected Member Functions | |
| const satcat5::gui::Icon8x8 * | icon8 () const |
| const satcat5::gui::Icon16x16 * | icon16 () const |
| const satcat5::gui::Icon32x32 * | icon32 () const |
| void | update (Cursor &cursor) const |
| Update cursor-state automatically for easier chaining. | |
Protected Attributes | |
| u8 | m_opcode |
| u8 | m_arg1 |
| satcat5::gui::DrawArg | m_arg2 |
| bool DrawCmd::rc | ( | u16 | r, |
| u16 | c | ||
| ) | const |
Get the new pixel value at the designated row and column.
Coordinates are relative to the current Cursor position. Return true = foreground, false = background.
Definition at line 52 of file gui_display.cc.