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

The Broadcast class represents a Scratch broadcast. More...

#include <scratchcpp/broadcast.h>

Inheritance diagram for libscratchcpp::Broadcast:
Collaboration diagram for libscratchcpp::Broadcast:

Public Member Functions

 Broadcast (const std::string &id, const std::string &name, bool isBackdropBroadcast=false)
 
 Broadcast (const Broadcast &)=delete
 
const std::string & name () const
 
void setName (const std::string &newName)
 
bool isBackdropBroadcast () const
 
const std::string & id () const
 
void setId (const std::string &newId)
 

Detailed Description

The Broadcast class represents a Scratch broadcast.

Constructor & Destructor Documentation

◆ Broadcast() [1/2]

Broadcast::Broadcast ( const std::string & id,
const std::string & name,
bool isBackdropBroadcast = false )

Constructs Broadcast.

◆ Broadcast() [2/2]

libscratchcpp::Broadcast::Broadcast ( const Broadcast & )
delete

Member Function Documentation

◆ id()

const std::string & Entity::id ( ) const
inherited

Returns the ID.

◆ isBackdropBroadcast()

bool Broadcast::isBackdropBroadcast ( ) const

Returns true if this broadcast belongs to a backdrop.

◆ name()

const std::string & Broadcast::name ( ) const

Returns the name of the broadcast.

◆ setId()

void Entity::setId ( const std::string & newId)
inherited

Sets the ID.

◆ setName()

void Broadcast::setName ( const std::string & newName)

Sets the name of the broadcast.


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