The IStageHandler class provides a stage interface for Scratch project players.
More...
#include <scratchcpp/istagehandler.h>
The IStageHandler class provides a stage interface for Scratch project players.
◆ ~IStageHandler()
| virtual libscratchcpp::IStageHandler::~IStageHandler |
( |
| ) |
|
|
inlinevirtual |
◆ boundingRect()
| virtual Rect libscratchcpp::IStageHandler::boundingRect |
( |
| ) |
const |
|
pure virtual |
Used to get the bounding rectangle of the stage.
◆ costumeHeight()
| virtual int libscratchcpp::IStageHandler::costumeHeight |
( |
| ) |
const |
|
pure virtual |
Used to get the current costume height.
◆ costumeWidth()
| virtual int libscratchcpp::IStageHandler::costumeWidth |
( |
| ) |
const |
|
pure virtual |
Used to get the current costume width.
◆ fastBoundingRect()
| virtual Rect libscratchcpp::IStageHandler::fastBoundingRect |
( |
| ) |
const |
|
pure virtual |
Used to get a less accurate bounding rectangle of the stage which is calculated by transforming the costume rectangle.
◆ init()
| virtual void libscratchcpp::IStageHandler::init |
( |
Stage * | stage | ) |
|
|
pure virtual |
Called when the interface is set on a stage.
◆ onCostumeChanged()
| virtual void libscratchcpp::IStageHandler::onCostumeChanged |
( |
Costume * | costume | ) |
|
|
pure virtual |
Called when the costume changes.
◆ onGraphicsEffectChanged()
| virtual void libscratchcpp::IStageHandler::onGraphicsEffectChanged |
( |
IGraphicsEffect * | effect, |
|
|
double | value ) |
|
pure virtual |
Called when the value of the given graphics effect changes.
- Note
- This method isn't called when all effects are cleared, use onGraphicsEffectsCleared() for this.
◆ onGraphicsEffectsCleared()
| virtual void libscratchcpp::IStageHandler::onGraphicsEffectsCleared |
( |
| ) |
|
|
pure virtual |
Called when all graphics effects are cleared.
◆ onTempoChanged()
| virtual void libscratchcpp::IStageHandler::onTempoChanged |
( |
int | tempo | ) |
|
|
pure virtual |
Called when the tempo changes.
◆ onVideoStateChanged()
| virtual void libscratchcpp::IStageHandler::onVideoStateChanged |
( |
Stage::VideoState | videoState | ) |
|
|
pure virtual |
Called when the video state changes.
◆ onVideoTransparencyChanged()
| virtual void libscratchcpp::IStageHandler::onVideoTransparencyChanged |
( |
int | videoTransparency | ) |
|
|
pure virtual |
Called when the video transparency changes.
◆ touchingClones()
| virtual bool libscratchcpp::IStageHandler::touchingClones |
( |
const std::vector< Sprite * > & | clones | ) |
const |
|
pure virtual |
Used to check whether the stage touches any of the given sprite clones.
◆ touchingColor() [1/2]
| virtual bool libscratchcpp::IStageHandler::touchingColor |
( |
Rgb | color | ) |
const |
|
pure virtual |
Used to check whether the stage touches the given color.
◆ touchingColor() [2/2]
| virtual bool libscratchcpp::IStageHandler::touchingColor |
( |
Rgb | color, |
|
|
Rgb | mask ) const |
|
pure virtual |
Used to check whether the mask part of the stage touches the given color.
◆ touchingPoint()
| virtual bool libscratchcpp::IStageHandler::touchingPoint |
( |
double | x, |
|
|
double | y ) const |
|
pure virtual |
Used to check whether the stage touches the given point (in Scratch coordinates).
The documentation for this class was generated from the following file: