The Input class represents a Scratch block input.
More...
#include <scratchcpp/input.h>
The Input class represents a Scratch block input.
◆ Type
| Enumerator |
|---|
| Shadow | |
| NoShadow | |
| ObscuredShadow | |
◆ Input() [1/2]
| Input::Input |
( |
const std::string & | name, |
|
|
Type | type ) |
◆ Input() [2/2]
| libscratchcpp::Input::Input |
( |
const Input & | | ) |
|
|
delete |
◆ name()
| const std::string & Input::name |
( |
| ) |
const |
Returns the name of the input.
◆ pointsToDropdownMenu()
| bool Input::pointsToDropdownMenu |
( |
| ) |
const |
Returns true if the input points to a dropdown menu.
(if valueBlock() points to a shadow block with a single field which does not point to an entity)
◆ primaryValue()
Returns the primary value.
◆ secondaryValue()
Returns the secondary value (usually the value of an obscured shadow).
◆ selectedMenuItem()
| std::string Input::selectedMenuItem |
( |
| ) |
const |
◆ setPrimaryValue()
| void Input::setPrimaryValue |
( |
const Value & | value | ) |
|
◆ setSecondaryValue()
| void Input::setSecondaryValue |
( |
const Value & | value | ) |
|
Sets the secondary value.
◆ setValueBlock()
| void Input::setValueBlock |
( |
Block * | block | ) |
|
Sets the block which obscures the shadow or, if there's a shadow, sets the block the input points to.
◆ setValueBlockId()
| void Input::setValueBlockId |
( |
const std::string & | id | ) |
|
◆ type()
Returns the type of the input.
◆ valueBlock()
| Block * Input::valueBlock |
( |
| ) |
const |
Returns the block which obscures the shadow.
◆ valueBlockId()
| const std::string & Input::valueBlockId |
( |
| ) |
const |
Returns the ID of the block which obscures the shadow or, if there's a shadow, returns the block the input points to.
The documentation for this class was generated from the following files: