roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::Streamable Class Referenceabstract

Drawable that can provide a sequential pixel stream. More...

#include <streamable.h>

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

Public Member Functions

virtual std::unique_ptr< PixelStreamcreateStream () const =0
 Create a stream covering the full extents().
 
virtual std::unique_ptr< PixelStreamcreateStream (const Box &clip_box) const =0
 Create a stream for the given clipped bounds.
 
virtual TransparencyMode getTransparencyMode () const
 Return the transparency mode for pixels in this stream.
 
- Public Member Functions inherited from roo_display::Drawable
virtual ~Drawable ()
 
virtual Box extents () const =0
 Return the bounding box encompassing all pixels that need to be drawn.
 
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 that can provide a sequential pixel stream.

Streamables allow the renderer to efficiently draw clipped rectangles and blend pixel data without per-pixel virtual calls. This is commonly used by images and offscreen buffers, and it is also the base for Rasterizable.

Definition at line 426 of file streamable.h.

Member Function Documentation

◆ createStream() [1/2]

◆ createStream() [2/2]

◆ getTransparencyMode()


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