SatCat5
satcat5::gui::DrawCmd Class Reference

Detailed Description

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.

See also
gui_display.h, gui::Canvas, gui::Display.

Definition at line 61 of file gui_display.h.

#include <gui_display.h>

Collaboration diagram for satcat5::gui::DrawCmd:
[legend]

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::Icon8x8icon8 () const
 
const satcat5::gui::Icon16x16icon16 () const
 
const satcat5::gui::Icon32x32icon32 () 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
 

Member Function Documentation

◆ rc()

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.


The documentation for this class was generated from the following files: