libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
libscratchcpp::Drawable Class Reference

The Drawable class is the base class of rendered elements (stage, sprites, text bubbles). More...

#include <scratchcpp/drawable.h>

Inheritance diagram for libscratchcpp::Drawable:

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
 
IEngineengine () const
 
virtual void setEngine (IEngine *engine)
 

Detailed Description

The Drawable class is the base class of rendered elements (stage, sprites, text bubbles).

Constructor & Destructor Documentation

◆ Drawable() [1/2]

Drawable::Drawable ( )

Constructs Drawable.

◆ Drawable() [2/2]

libscratchcpp::Drawable::Drawable ( const Drawable & )
delete

Member Function Documentation

◆ engine()

IEngine * Drawable::engine ( ) const

Returns the engine.

◆ isTarget()

virtual bool libscratchcpp::Drawable::isTarget ( ) const
inlinevirtual

Returns true if this Drawable is a Target.

Reimplemented in libscratchcpp::Target.

◆ isTextBubble()

virtual bool libscratchcpp::Drawable::isTextBubble ( ) const
inlinevirtual

Returns true if this Drawable is a TextBubble.

Reimplemented in libscratchcpp::TextBubble.

◆ layerOrder()

int Drawable::layerOrder ( ) const

Returns the layer number.

◆ layerOrderChanged()

sigslot::signal< int > & Drawable::layerOrderChanged ( ) const

Emits when the layer number changes.

◆ setEngine()

void Drawable::setEngine ( IEngine * engine)
virtual

Sets the engine.

Reimplemented in libscratchcpp::Target.

◆ setLayerOrder()

void Drawable::setLayerOrder ( int newLayerOrder)
virtual

Sets the layer number.

Reimplemented in libscratchcpp::Sprite.


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