SatCat5
satcat5::gui::Icon8x8 Struct Reference

Detailed Description

Plain-old-data struct for an 8x8 monochrome image.

See also
gui_icons.h, gui::Icon16x16, gui::Icon32x32. Coordinates: Top row is index 0, left column is LSB.

Definition at line 25 of file gui_icons.h.

#include <gui_icons.h>

Public Member Functions

 Icon8x8 (const Icon8x8 &t)=default
 
Icon8x8operator= (const Icon8x8 &t)=default
 
bool rc (u16 r, u16 c) const
 Get pixel value at designated row and column. More...
 
u16 h () const
 Width of this icon.
 
u16 w () const
 Height of this icon.
 

Public Attributes

u8 data [8]
 8 x 8 pixels = 8 bytes
 

Member Function Documentation

◆ rc()

bool satcat5::gui::Icon8x8::rc ( u16  r,
u16  c 
) const
inline

Get pixel value at designated row and column.

Note: Plain-old-data requirement means we cannot use virtual methods to implement accessor methods.

Definition at line 36 of file gui_icons.h.


The documentation for this struct was generated from the following file: