|
roo_display
API Documentation for roo_display
|
Binary clip mask using a packed bit buffer. More...
#include <clip_mask.h>
Public Member Functions | |
| ClipMask (const roo::byte *data, Box bounds, bool inverted=false) | |
| Construct a clip mask. | |
| template<typename U = uint8_t, typename std::enable_if<!std::is_same< U, roo::byte >::value, int >::type = 0> | |
| ClipMask (const U *data, Box bounds) | |
Deprecated: use the roo::byte* constructor instead. | |
| const roo::byte * | data () const |
| Return raw data buffer. | |
| const Box & | bounds () const |
| Return mask bounds. | |
| bool | inverted () const |
| Return inversion flag. | |
| bool | isMasked (int16_t x, int16_t y) const |
| Return whether a point is masked out. | |
| bool | isAllMasked (int16_t x, int16_t y, roo::byte mask, uint8_t lines) const |
| Return whether all bits in a block are masked. | |
| bool | isAllUnmasked (int16_t x, int16_t y, roo::byte mask, uint8_t lines) const |
| Return whether all bits in a block are unmasked. | |
| void | setInverted (bool inverted) |
| Set inversion behavior. | |
Binary clip mask using a packed bit buffer.
Each bit represents a pixel within bounds. Rows are byte-aligned. For best performance, align the mask to 8-pixel boundaries in device coordinates.
Definition at line 17 of file clip_mask.h.
|
inline |
Construct a clip mask.
Definition at line 20 of file clip_mask.h.
|
inline |
Deprecated: use the roo::byte* constructor instead.
Definition at line 30 of file clip_mask.h.
Return mask bounds.
Definition at line 36 of file clip_mask.h.
Referenced by roo_display::FrontToBackWriter::setAddress().
|
inline |
Return raw data buffer.
Definition at line 34 of file clip_mask.h.
|
inline |
|
inline |
Return whether all bits in a block are masked.
Definition at line 52 of file clip_mask.h.
|
inline |
Return whether all bits in a block are unmasked.
Definition at line 59 of file clip_mask.h.
Return whether a point is masked out.
Definition at line 41 of file clip_mask.h.
References roo_display::Box::contains(), roo_display::Box::xMin(), and roo_display::Box::yMin().
Referenced by roo_display::ClipMaskFilter::fill(), roo_display::ClipMaskFilter::fillPixels(), roo_display::ClipMaskFilter::write(), and roo_display::ClipMaskFilter::writePixels().