The Costume class represents a Scratch costume.
More...
#include <scratchcpp/costume.h>
The Costume class represents a Scratch costume.
◆ Costume() [1/2]
| Costume::Costume |
( |
const std::string & | name, |
|
|
const std::string & | id, |
|
|
const std::string & | format ) |
◆ Costume() [2/2]
| libscratchcpp::Costume::Costume |
( |
const Costume & | | ) |
|
|
delete |
◆ bitmapResolution()
| double Costume::bitmapResolution |
( |
| ) |
const |
Returns the reciprocal of the costume scaling factor for bitmap costumes.
◆ broadcast()
Returns the Broadcast linked with this costume.
- Note
- This is used by the "switch backdrop to and wait" block.
◆ data()
| const void * Asset::data |
( |
| ) |
const |
|
inherited |
◆ dataFormat()
| const std::string & Asset::dataFormat |
( |
| ) |
const |
|
inherited |
Returns the name of the format of the asset file.
◆ dataSize()
| unsigned int Asset::dataSize |
( |
| ) |
const |
|
inherited |
Returns the size of the asset data.
◆ fileName()
| const std::string & Asset::fileName |
( |
| ) |
const |
|
inherited |
Returns the name of the asset file.
◆ id()
| const std::string & Entity::id |
( |
| ) |
const |
|
inherited |
◆ isClone()
| virtual bool libscratchcpp::Asset::isClone |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ name()
| const std::string & Asset::name |
( |
| ) |
const |
|
inherited |
Returns the name of the asset.
◆ processData()
| virtual void libscratchcpp::Asset::processData |
( |
unsigned int | size, |
|
|
void * | data ) |
|
inlineprotectedvirtualinherited |
◆ rotationCenterX()
| int Costume::rotationCenterX |
( |
| ) |
const |
Returns the x-coordinate of the rotation center.
◆ rotationCenterY()
| int Costume::rotationCenterY |
( |
| ) |
const |
Returns the y-coordinate of the rotation center.
◆ setBitmapResolution()
| void Costume::setBitmapResolution |
( |
double | newBitmapResolution | ) |
|
Sets the reciprocal of the costume scaling factor for bitmap costumes.
◆ setData()
| void Asset::setData |
( |
unsigned int | size, |
|
|
void * | data ) |
|
inherited |
Sets the asset data (will be deallocated when the object is destroyed).
◆ setId()
| void Asset::setId |
( |
const std::string & | id | ) |
|
|
inherited |
Sets the ID (MD5 hash) of the asset file.
◆ setRotationCenterX()
| void Costume::setRotationCenterX |
( |
int | newRotationCenterX | ) |
|
Sets the x-coordinate of the rotation center.
◆ setRotationCenterY()
| void Costume::setRotationCenterY |
( |
int | newRotationCenterY | ) |
|
Returns the y-coordinate of the rotation center.
◆ setTarget()
| void Asset::setTarget |
( |
Target * | target | ) |
|
|
inherited |
Sets the sprite or stage this asset belongs to.
◆ target()
| Target * Asset::target |
( |
| ) |
const |
|
inherited |
Returns the sprite or stage this asset belongs to.
The documentation for this class was generated from the following files: