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

Drawable wrapper that applies a Transformation. More...

#include <transformation.h>

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

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 DrawableEmpty ()
 A singleton representing a no-op drawable with no bounding box.
 

Detailed Description

Drawable wrapper that applies a Transformation.

Definition at line 149 of file transformation.h.

Constructor & Destructor Documentation

◆ TransformedDrawable()

roo_display::TransformedDrawable::TransformedDrawable ( Transformation  transformation,
const Drawable delegate 
)
inline

Construct a transformed drawable.

Definition at line 152 of file transformation.h.

Member Function Documentation

◆ anchorExtents()

Box roo_display::TransformedDrawable::anchorExtents ( ) const
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().

◆ extents()

Box roo_display::TransformedDrawable::extents ( ) const
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().


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