-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcomment.h
More file actions
48 lines (33 loc) · 1.04 KB
/
Copy pathcomment.h
File metadata and controls
48 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "entity.h"
namespace libscratchcpp
{
class Block;
class CommentPrivate;
/*! \brief The Comment class represents a comment in the code area. */
class LIBSCRATCHCPP_EXPORT Comment : public Entity
{
public:
Comment(const std::string &id, double x = 0, double y = 0);
Comment(const Comment &) = delete;
const std::string &blockId() const;
void setBlockId(const std::string id);
Block *block() const;
void setBlock(Block *block);
double x() const;
void setX(double x);
double y() const;
void setY(double y);
double width() const;
void setWidth(double width);
double height() const;
void setHeight(double height);
bool minimized() const;
void setMinimized(bool minimized);
const std::string &text() const;
void setText(const std::string &text);
private:
spimpl::unique_impl_ptr<CommentPrivate> impl;
};
} // namespace libscratchcpp