The Comment class represents a comment in the code area.
More...
#include <scratchcpp/comment.h>
The Comment class represents a comment in the code area.
◆ Comment() [1/2]
| Comment::Comment |
( |
const std::string & | id, |
|
|
double | x = 0, |
|
|
double | y = 0 ) |
Constructs Comment at the given position in the code area.
◆ Comment() [2/2]
| libscratchcpp::Comment::Comment |
( |
const Comment & | | ) |
|
|
delete |
◆ block()
| Block * Comment::block |
( |
| ) |
const |
Returns the block the comment is attached to.
◆ blockId()
| const std::string & Comment::blockId |
( |
| ) |
const |
Returns the ID of the block the comment is attached to.
◆ height()
| double Comment::height |
( |
| ) |
const |
◆ id()
| const std::string & Entity::id |
( |
| ) |
const |
|
inherited |
◆ minimized()
| bool Comment::minimized |
( |
| ) |
const |
Returns true if the comment is collapsed and false otherwise.
◆ setBlock()
| void Comment::setBlock |
( |
Block * | block | ) |
|
Sets the block the comment is attached to.
◆ setBlockId()
| void Comment::setBlockId |
( |
const std::string | id | ) |
|
Sets the ID of the block the comment is attached to.
◆ setHeight()
| void Comment::setHeight |
( |
double | height | ) |
|
◆ setId()
| void Entity::setId |
( |
const std::string & | newId | ) |
|
|
inherited |
◆ setMinimized()
| void Comment::setMinimized |
( |
bool | minimized | ) |
|
Sets whether the comment is collapsed.
◆ setText()
| void Comment::setText |
( |
const std::string & | text | ) |
|
◆ setWidth()
| void Comment::setWidth |
( |
double | width | ) |
|
◆ setX()
| void Comment::setX |
( |
double | x | ) |
|
Sets the x-coordinate of the comment in the code area.
◆ setY()
| void Comment::setY |
( |
double | y | ) |
|
Sets the x-coordinate of the comment in the code area.
◆ text()
| const std::string & Comment::text |
( |
| ) |
const |
◆ width()
| double Comment::width |
( |
| ) |
const |
◆ x()
| double Comment::x |
( |
| ) |
const |
Returns the x-coordinate of the comment in the code area.
◆ y()
| double Comment::y |
( |
| ) |
const |
Returns the y-coordinate of the comment in the code area.
The documentation for this class was generated from the following files: