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

Base class for rounded rectangles. More...

#include <basic.h>

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

Public Member Functions

 RoundRectBase (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t radius, 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_
 
int16_t radius_
 

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 rounded rectangles.

Definition at line 159 of file basic.h.

Constructor & Destructor Documentation

◆ RoundRectBase()

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

Definition at line 161 of file basic.h.

References radius_, x0_, x1_, y0_, and y1_.

Member Function Documentation

◆ extents()

Box roo_display::RoundRectBase::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 172 of file basic.h.

References x0_, x1_, y0_, and y1_.

Field Documentation

◆ radius_

int16_t roo_display::RoundRectBase::radius_
protected

Definition at line 179 of file basic.h.

Referenced by RoundRectBase().

◆ x0_

int16_t roo_display::RoundRectBase::x0_
protected

Definition at line 175 of file basic.h.

Referenced by extents(), and RoundRectBase().

◆ x1_

int16_t roo_display::RoundRectBase::x1_
protected

Definition at line 177 of file basic.h.

Referenced by extents(), and RoundRectBase().

◆ y0_

int16_t roo_display::RoundRectBase::y0_
protected

Definition at line 176 of file basic.h.

Referenced by extents(), and RoundRectBase().

◆ y1_

int16_t roo_display::RoundRectBase::y1_
protected

Definition at line 178 of file basic.h.

Referenced by extents(), and RoundRectBase().


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