12 return "FillMode::kExtents";
14 return "FillMode::kVisible";
16 return "FillMode::(unknown)";
19class EmptyDrawable :
public Drawable {
21 Box extents()
const override {
return Box(); }
30void Drawable::drawTo(
const Surface& s)
const {
41 static EmptyDrawable empty;
static Box Intersect(const Box &a, const Box &b)
Return the intersection of two boxes (may be empty).
Interface for objects that can be drawn to an output device.
static const Drawable * Empty()
A singleton representing a no-op drawable with no bounding box.
virtual Box extents() const =0
Return the bounding box encompassing all pixels that need to be drawn.
Defines 140 opaque HTML named colors.
@ kSource
The new ARGB8888 value completely replaces the old one.
roo_logging::Stream & operator<<(roo_logging::Stream &os, BlendingMode mode)
FillMode
Specifies whether a Drawable should fill its entire extents box, including fully transparent pixels.
@ kVisible
Fully transparent pixels do not need to be filled.
@ kExtents
Fill the entire extents box (possibly with fully transparent pixels).