"const Rect & Drawable::getRect ()" prohibits use as a parameter in e.g. "Screen::invalidateRect ()"
Hi Gfx Team,
Could Drawable::getRect () in Drawable.hpp
const Rect & getRect() const
{
return rect;
}
be changed to
Rect getRect() const
{
return rect;
}
so it can be used as a parameter in e.g.
void Screen::invalidateRect ( Rect & invalidatedArea ) const
{
container.invalidateRect ( invalidatedArea );
}
With the current implementation one has to write
Screen::invalidateRect ( Rect { Drawable::getRect () } );
If not, could you add a variation e.g.
Rect getRectValue() const
{
return rect;
}
Thanks
Ferro
