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

Drawable PNG image backed by a multipass resource. More...

#include <png.h>

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

Public Member Functions

 PngImage (PngDecoder &decoder, roo_io::MultipassResource &resource)
 Create a PNG image using a decoder and resource.
 
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 PNG image backed by a multipass resource.

Definition at line 51 of file png.h.

Constructor & Destructor Documentation

◆ PngImage()

roo_display::PngImage::PngImage ( PngDecoder decoder,
roo_io::MultipassResource &  resource 
)
inline

Create a PNG image using a decoder and resource.

Definition at line 54 of file png.h.

Member Function Documentation

◆ extents()

Box roo_display::PngImage::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 59 of file png.h.

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


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