-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtextbubble.h
More file actions
44 lines (32 loc) · 1022 Bytes
/
Copy pathtextbubble.h
File metadata and controls
44 lines (32 loc) · 1022 Bytes
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
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "drawable.h"
#include "signal.h"
namespace libscratchcpp
{
class Thread;
class TextBubblePrivate;
/*! \brief The TextBubble class represents a text bubble created using say or think block. */
class LIBSCRATCHCPP_EXPORT TextBubble : public Drawable
{
public:
enum class Type
{
Say,
Think
};
TextBubble();
TextBubble(const TextBubble &) = delete;
bool isTextBubble() const override final;
Type type() const;
virtual void setType(Type type);
sigslot::signal<Type> &typeChanged() const;
const std::string &text() const;
virtual void setText(const std::string &text);
virtual void setText(const std::string &text, Thread *owner);
sigslot::signal<const std::string &> &textChanged() const;
Thread *owner() const;
private:
spimpl::unique_impl_ptr<TextBubblePrivate> impl;
};
} // namespace libscratchcpp