roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::internal::NibbleRect Class Reference

#include <nibble_rect.h>

Public Member Functions

 NibbleRect (roo::byte *buffer, int16_t width_bytes, int16_t height)
 
roo::byte * buffer ()
 
const roo::byte * buffer () const
 
int16_t width_bytes () const
 
int16_t width () const
 
int16_t height () const
 
uint8_t get (int16_t x, int16_t y) const
 
void set (int16_t x, int16_t y, uint8_t value)
 
void fillRect (const Box &rect, uint8_t value)
 

Detailed Description

Definition at line 14 of file nibble_rect.h.

Constructor & Destructor Documentation

◆ NibbleRect()

roo_display::internal::NibbleRect::NibbleRect ( roo::byte *  buffer,
int16_t  width_bytes,
int16_t  height 
)
inline

Definition at line 16 of file nibble_rect.h.

Member Function Documentation

◆ buffer() [1/2]

roo::byte * roo_display::internal::NibbleRect::buffer ( )
inline

◆ buffer() [2/2]

const roo::byte * roo_display::internal::NibbleRect::buffer ( ) const
inline

Definition at line 20 of file nibble_rect.h.

◆ fillRect()

void roo_display::internal::NibbleRect::fillRect ( const Box rect,
uint8_t  value 
)
inline

Definition at line 42 of file nibble_rect.h.

References width().

Referenced by roo_display::BackgroundFillOptimizer::FrameBuffer::invalidateRect().

◆ get()

◆ height()

int16_t roo_display::internal::NibbleRect::height ( ) const
inline

◆ set()

void roo_display::internal::NibbleRect::set ( int16_t  x,
int16_t  y,
uint8_t  value 
)
inline

Definition at line 30 of file nibble_rect.h.

References width_bytes().

◆ width()

int16_t roo_display::internal::NibbleRect::width ( ) const
inline

◆ width_bytes()

int16_t roo_display::internal::NibbleRect::width_bytes ( ) const
inline

Definition at line 21 of file nibble_rect.h.

Referenced by set().


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