|
roo_display
API Documentation for roo_display
|
Drawable wrapper that applies a Transformation.
More...
#include <transformation.h>
Public Member Functions | |
| TransformedDrawable (Transformation transformation, const Drawable *delegate) | |
| Construct a transformed drawable. | |
| 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. | |
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. | |
Drawable wrapper that applies a Transformation.
Definition at line 149 of file transformation.h.
|
inline |
Construct a transformed drawable.
Definition at line 152 of file transformation.h.
|
inlineoverridevirtual |
Return the bounds used for alignment.
Defaults to extents(). Some drawables (notably text labels) may want different alignment bounds.
This method is called during a transaction and must not block or perform I/O.
Reimplemented from roo_display::Drawable.
Definition at line 159 of file transformation.h.
References roo_display::Drawable::anchorExtents(), and roo_display::Transformation::transformBox().
|
inlineoverridevirtual |
Return the bounding box encompassing all pixels that need to be drawn.
This method is called during a transaction and must not block or perform I/O.
Implements roo_display::Drawable.
Definition at line 155 of file transformation.h.
References roo_display::Drawable::extents(), and roo_display::Transformation::transformBox().