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

Base class for axis-aligned rectangle shapes. More...

#include <basic.h>

Inheritance diagram for roo_display::RectBase:
[legend]
Collaboration diagram for roo_display::RectBase:
[legend]

Public Member Functions

 RectBase (int16_t x0, int16_t y0, int16_t x1, int16_t y1, Color color)
 
Box extents () const override
 Return the bounding box encompassing all pixels that need to be drawn.
 
- Public Member Functions inherited from roo_display::BasicShape
Color color () const
 Return the shape color.
 
- Public Member Functions inherited from roo_display::Drawable
virtual ~Drawable ()
 
virtual Box anchorExtents () const
 Return the bounds used for alignment.
 

Protected Attributes

int16_t x0_
 
int16_t y0_
 
int16_t x1_
 
int16_t y1_
 

Additional Inherited Members

- Static Public Member Functions inherited from roo_display::Drawable
static const DrawableEmpty ()
 A singleton representing a no-op drawable with no bounding box.
 
- Protected Member Functions inherited from roo_display::BasicShape
 BasicShape (Color color)
 

Detailed Description

Base class for axis-aligned rectangle shapes.

Definition at line 57 of file basic.h.

Constructor & Destructor Documentation

◆ RectBase()

roo_display::RectBase::RectBase ( int16_t  x0,
int16_t  y0,
int16_t  x1,
int16_t  y1,
Color  color 
)
inline

Definition at line 59 of file basic.h.

References x0_, x1_, y0_, and y1_.

Member Function Documentation

◆ extents()

Box roo_display::RectBase::extents ( ) const
inlineoverridevirtual

Return the bounding box encompassing all pixels that need to be drawn.

This method is called during a transaction and must not block or perform I/O.

Implements roo_display::Drawable.

Definition at line 65 of file basic.h.

References x0_, x1_, y0_, and y1_.

Referenced by roo_display::FilledRect::extents().

Field Documentation

◆ x0_

int16_t roo_display::RectBase::x0_
protected

Definition at line 68 of file basic.h.

Referenced by roo_display::Border::Border(), extents(), and RectBase().

◆ x1_

int16_t roo_display::RectBase::x1_
protected

Definition at line 70 of file basic.h.

Referenced by roo_display::Border::Border(), extents(), and RectBase().

◆ y0_

int16_t roo_display::RectBase::y0_
protected

Definition at line 69 of file basic.h.

Referenced by roo_display::Border::Border(), extents(), and RectBase().

◆ y1_

int16_t roo_display::RectBase::y1_
protected

Definition at line 71 of file basic.h.

Referenced by roo_display::Border::Border(), extents(), and RectBase().


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