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

Drawable JPEG image backed by a file resource (non-Arduino). More...

#include <jpeg.h>

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

Public Member Functions

 JpegFile (JpegDecoder &decoder, roo_io::Filesystem &fs, std::string path)
 Create a JPEG file drawable using a roo_io filesystem and path.
 
Box extents () const override
 Return the bounding box encompassing all pixels that need to be drawn.
 
- Public Member Functions inherited from roo_display::Drawable
virtual ~Drawable ()
 
virtual Box anchorExtents () const
 Return the bounds used for alignment.
 

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.
 

Detailed Description

Drawable JPEG image backed by a file resource (non-Arduino).

Definition at line 101 of file jpeg.h.

Constructor & Destructor Documentation

◆ JpegFile()

roo_display::JpegFile::JpegFile ( JpegDecoder decoder,
roo_io::Filesystem &  fs,
std::string  path 
)
inline

Create a JPEG file drawable using a roo_io filesystem and path.

Definition at line 104 of file jpeg.h.

Member Function Documentation

◆ extents()

Box roo_display::JpegFile::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 107 of file jpeg.h.

References roo_display::JpegImage::extents().


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