|
libscratchcpp
A library for C++ based Scratch project players
|
The Drawable class is the base class of rendered elements (stage, sprites, text bubbles). More...
#include <scratchcpp/drawable.h>

Public Member Functions | |
| Drawable () | |
| Drawable (const Drawable &)=delete | |
| virtual bool | isTarget () const |
| virtual bool | isTextBubble () const |
| int | layerOrder () const |
| virtual void | setLayerOrder (int newLayerOrder) |
| sigslot::signal< int > & | layerOrderChanged () const |
| IEngine * | engine () const |
| virtual void | setEngine (IEngine *engine) |
The Drawable class is the base class of rendered elements (stage, sprites, text bubbles).
| Drawable::Drawable | ( | ) |
Constructs Drawable.
|
delete |
| IEngine * Drawable::engine | ( | ) | const |
Returns the engine.
|
inlinevirtual |
Returns true if this Drawable is a Target.
Reimplemented in libscratchcpp::Target.
|
inlinevirtual |
Returns true if this Drawable is a TextBubble.
Reimplemented in libscratchcpp::TextBubble.
| int Drawable::layerOrder | ( | ) | const |
Returns the layer number.
| sigslot::signal< int > & Drawable::layerOrderChanged | ( | ) | const |
Emits when the layer number changes.
|
virtual |
Sets the engine.
Reimplemented in libscratchcpp::Target.
|
virtual |
Sets the layer number.
Reimplemented in libscratchcpp::Sprite.