|
roo_display
API Documentation for roo_display
|
Convenience wrapper for images backed by a byte stream. More...
#include <streamable.h>
Public Member Functions | |
| SimpleStreamable (int16_t width, int16_t height, Iterable resource, const ColorMode &color_mode=ColorMode()) | |
| Construct from width/height and a resource. | |
| SimpleStreamable (Box extents, Iterable resource, const ColorMode &color_mode=ColorMode()) | |
| Construct from extents and a resource. | |
| SimpleStreamable (Box extents, Box anchor_extents, Iterable resource, const ColorMode &color_mode=ColorMode()) | |
| Construct from extents, anchor extents, and a resource. | |
| void | setColorMode (const ColorMode &color_mode) |
| Set the color mode. | |
| Box | extents () const override |
| Return extents of the image. | |
| Box | anchorExtents () const override |
| Return anchor extents used for alignment. | |
| const Iterable & | resource () const |
| Access underlying resource. | |
| const ColorMode & | color_mode () const |
| Access color mode (const). | |
| ColorMode & | color_mode () |
| Access color mode (mutable). | |
| std::unique_ptr< PixelStream > | createStream () const override |
| Create a pixel stream for the full extents. | |
| std::unique_ptr< PixelStream > | createStream (const Box &bounds) const override |
| Create a pixel stream for a clipped box. | |
| std::unique_ptr< StreamType > | createRawStream () const |
| Create the raw stream type. | |
| TransparencyMode | getTransparencyMode () const override |
| Return transparency mode derived from color mode. | |
Public Member Functions inherited from roo_display::Drawable | |
| virtual | ~Drawable () |
Additional Inherited Members | |
Static Public Member Functions inherited from roo_display::Drawable | |
| static const Drawable * | Empty () |
| A singleton representing a no-op drawable with no bounding box. | |
Convenience wrapper for images backed by a byte stream.
Definition at line 464 of file streamable.h.
|
inline |
Construct from width/height and a resource.
Definition at line 467 of file streamable.h.
|
inline |
Construct from extents and a resource.
Definition at line 473 of file streamable.h.
|
inline |
Construct from extents, anchor extents, and a resource.
Definition at line 478 of file streamable.h.
|
inlineoverridevirtual |
Return anchor extents used for alignment.
Reimplemented from roo_display::Drawable.
Definition at line 492 of file streamable.h.
|
inline |
Access color mode (mutable).
Definition at line 499 of file streamable.h.
|
inline |
Access color mode (const).
Definition at line 497 of file streamable.h.
Referenced by roo_display::SimpleStreamable< Iterable, ColorMode, StreamType >::setColorMode().
|
inline |
Create the raw stream type.
Definition at line 514 of file streamable.h.
|
inlineoverridevirtual |
Create a pixel stream for the full extents.
Implements roo_display::Streamable.
Definition at line 502 of file streamable.h.
|
inlineoverridevirtual |
Create a pixel stream for a clipped box.
Implements roo_display::Streamable.
Definition at line 508 of file streamable.h.
References roo_display::SimpleStreamable< Iterable, ColorMode, StreamType >::extents(), and roo_display::SubRectangle().
|
inlineoverridevirtual |
Return extents of the image.
Implements roo_display::Drawable.
Definition at line 489 of file streamable.h.
Referenced by roo_display::SimpleStreamable< Iterable, ColorMode, StreamType >::createStream().
|
inlineoverridevirtual |
Return transparency mode derived from color mode.
Reimplemented from roo_display::Streamable.
Definition at line 520 of file streamable.h.
|
inline |
Access underlying resource.
Definition at line 495 of file streamable.h.
|
inline |
Set the color mode.
Definition at line 486 of file streamable.h.
References roo_display::SimpleStreamable< Iterable, ColorMode, StreamType >::color_mode().