Add comment why doc::Sprite::sprite() member function was added

This commit is contained in:
David Capello 2020-12-16 12:34:45 -03:00
parent 54ae195159
commit 569ff7ed7c

View File

@ -94,7 +94,8 @@ namespace doc {
void setSize(int width, int height);
void setColorSpace(const gfx::ColorSpaceRef& colorSpace);
const Sprite* sprite() { return this; }
// This method is only required/used for the template functions app::script::UserData_set_text/color.
const Sprite* sprite() const { return this; }
// Returns true if the sprite has a background layer and it's visible
bool isOpaque() const;