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

#include <basic.h>

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

Public Member Functions

 TriangleBase (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, 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 x2_
 
int16_t y2_
 

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

Definition at line 322 of file basic.h.

Constructor & Destructor Documentation

◆ TriangleBase()

roo_display::TriangleBase::TriangleBase ( int16_t  x0,
int16_t  y0,
int16_t  x1,
int16_t  y1,
int16_t  x2,
int16_t  y2,
Color  color 
)
inline

Definition at line 324 of file basic.h.

References x0_, x1_, x2_, y0_, y1_, and y2_.

Member Function Documentation

◆ extents()

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

References x0_, x1_, x2_, y0_, and y2_.

Field Documentation

◆ x0_

int16_t roo_display::TriangleBase::x0_
protected

Definition at line 354 of file basic.h.

Referenced by extents(), and TriangleBase().

◆ x1_

int16_t roo_display::TriangleBase::x1_
protected

Definition at line 356 of file basic.h.

Referenced by extents(), and TriangleBase().

◆ x2_

int16_t roo_display::TriangleBase::x2_
protected

Definition at line 358 of file basic.h.

Referenced by extents(), and TriangleBase().

◆ y0_

int16_t roo_display::TriangleBase::y0_
protected

Definition at line 355 of file basic.h.

Referenced by extents(), and TriangleBase().

◆ y1_

int16_t roo_display::TriangleBase::y1_
protected

Definition at line 357 of file basic.h.

Referenced by TriangleBase().

◆ y2_

int16_t roo_display::TriangleBase::y2_
protected

Definition at line 359 of file basic.h.

Referenced by extents(), and TriangleBase().


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