mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-20 18:40:57 +00:00
Add comment why doc::Sprite::sprite() member function was added
This commit is contained in:
parent
54ae195159
commit
569ff7ed7c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user