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

#include <offscreen.h>

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

Public Member Functions

 BitMaskOffscreen (int16_t width, int16_t height, roo::byte *buffer)
 
 BitMaskOffscreen (int16_t width, int16_t height, uint8_t *buffer)
 
 BitMaskOffscreen (Box extents, roo::byte *buffer)
 
 BitMaskOffscreen (Box extents, uint8_t *buffer)
 
 BitMaskOffscreen (int16_t width, int16_t height)
 
 BitMaskOffscreen (Box extents)
 
 BitMaskOffscreen (int16_t width, int16_t height, Color fillColor)
 
 BitMaskOffscreen (Box extents, Color fillColor)
 
- Public Member Functions inherited from roo_display::Offscreen< Monochrome >
 Offscreen (int16_t width, int16_t height, roo::byte *buffer, Monochrome color_mode=Monochrome())
 Create an offscreen with the given geometry and buffer.
 
 Offscreen (int16_t width, int16_t height, uint8_t *buffer, Monochrome color_mode=Monochrome())
 
 Offscreen (Box extents, roo::byte *buffer, Monochrome color_mode=Monochrome())
 
 Offscreen (int16_t width, int16_t height, Monochrome color_mode=Monochrome())
 
 Offscreen (Box extents, Monochrome color_mode=Monochrome())
 
 Offscreen (int16_t width, int16_t height, Color fillColor, Monochrome color_mode=Monochrome())
 
 Offscreen (Box extents, Color fillColor, Monochrome color_mode=Monochrome())
 
 Offscreen (const Drawable &d, Monochrome color_mode=Monochrome())
 
 Offscreen (const Drawable &d, Color bgColor, Monochrome color_mode=Monochrome())
 
 Offscreen (Offscreen &&other) noexcept
 
virtual ~Offscreen ()
 
const RasterTyperaster () const
 
Box extents () const override
 Return the bounding box encompassing all pixels that need to be drawn.
 
Box anchorExtents () const override
 Return the bounds used for alignment.
 
void setAnchorExtents (Box anchor_extents)
 
TransparencyMode getTransparencyMode () const override
 Return the transparency mode for pixels in this stream.
 
void readColors (const int16_t *x, const int16_t *y, uint32_t count, Color *result) const override
 Read colors for the given points.
 
const OffscreenDevice< Monochrome, ColorPixelOrder::kMsbFirst, roo_io::kBigEndian, ColorTraits< Monochrome >::pixels_per_byte, ColorStorageType< Monochrome > > & output () const
 
OffscreenDevice< Monochrome, ColorPixelOrder::kMsbFirst, roo_io::kBigEndian, ColorTraits< Monochrome >::pixels_per_byte, ColorStorageType< Monochrome > > & output ()
 
roo::byte * buffer ()
 
const roo::byte * buffer () const
 
const Monochromecolor_mode () const
 
- Public Member Functions inherited from roo_display::Rasterizable
void readColorsMaybeOutOfBounds (const int16_t *x, const int16_t *y, uint32_t count, Color *result, Color out_of_bounds_color=color::Transparent) const
 Read colors for points that may be out of bounds.
 
virtual bool readColorRect (int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax, Color *result) const
 Read colors for a rectangle.
 
std::unique_ptr< PixelStreamcreateStream () const override
 Default createStream() using readColors().
 
std::unique_ptr< PixelStreamcreateStream (const Box &bounds) const override
 Default createStream() for a clipped box using readColors().
 
- Public Member Functions inherited from roo_display::Drawable
virtual ~Drawable ()
 

Additional Inherited Members

- Public Types inherited from roo_display::Offscreen< Monochrome >
using RasterType = Raster< const roo::byte *, Monochrome, ColorPixelOrder::kMsbFirst, roo_io::kBigEndian >
 
- 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::Offscreen< Monochrome >
void set_extents (const Box &extents)
 
- Protected Member Functions inherited from roo_display::Rasterizable
void drawTo (const Surface &s) const override
 Default drawTo() using readColors().
 

Detailed Description

Definition at line 674 of file offscreen.h.

Constructor & Destructor Documentation

◆ BitMaskOffscreen() [1/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( int16_t  width,
int16_t  height,
roo::byte *  buffer 
)
inline

Definition at line 680 of file offscreen.h.

◆ BitMaskOffscreen() [2/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( int16_t  width,
int16_t  height,
uint8_t buffer 
)
inline

Definition at line 684 of file offscreen.h.

◆ BitMaskOffscreen() [3/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( Box  extents,
roo::byte *  buffer 
)

◆ BitMaskOffscreen() [4/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( Box  extents,
uint8_t buffer 
)
inline

Definition at line 694 of file offscreen.h.

◆ BitMaskOffscreen() [5/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( int16_t  width,
int16_t  height 
)
inline

Definition at line 700 of file offscreen.h.

◆ BitMaskOffscreen() [6/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( Box  extents)

◆ BitMaskOffscreen() [7/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( int16_t  width,
int16_t  height,
Color  fillColor 
)
inline

Definition at line 709 of file offscreen.h.

◆ BitMaskOffscreen() [8/8]

roo_display::BitMaskOffscreen::BitMaskOffscreen ( Box  extents,
Color  fillColor 
)

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