diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-07 15:18:48 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-07 15:18:48 -0500 |
commit | f9448d36db7c076f5091f70b7921dceddf63fdf9 (patch) | |
tree | a67d47d3e45fee4c258ad968f0d7bec9d78747eb /src/components/droppable.h | |
parent | da454bb943929ae649c09ca948e7c83644c35712 (diff) | |
download | therapy-f9448d36db7c076f5091f70b7921dceddf63fdf9.tar.gz therapy-f9448d36db7c076f5091f70b7921dceddf63fdf9.tar.bz2 therapy-f9448d36db7c076f5091f70b7921dceddf63fdf9.zip |
Inlined some components
Diffstat (limited to 'src/components/droppable.h')
-rw-r--r-- | src/components/droppable.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/components/droppable.h b/src/components/droppable.h index 83fcb9d..722c139 100644 --- a/src/components/droppable.h +++ b/src/components/droppable.h | |||
@@ -4,12 +4,21 @@ | |||
4 | #include "component.h" | 4 | #include "component.h" |
5 | 5 | ||
6 | class DroppableComponent : public Component { | 6 | class DroppableComponent : public Component { |
7 | public: | 7 | public: |
8 | void setDroppable(bool can); | ||
9 | bool isDroppable() const; | ||
10 | 8 | ||
11 | private: | 9 | inline bool isDroppable() const |
12 | bool droppable = false; | 10 | { |
11 | return droppable_; | ||
12 | } | ||
13 | |||
14 | inline void setDroppable(bool can) | ||
15 | { | ||
16 | droppable_ = can; | ||
17 | } | ||
18 | |||
19 | private: | ||
20 | |||
21 | bool droppable_ = false; | ||
13 | }; | 22 | }; |
14 | 23 | ||
15 | #endif /* end of include guard: DROPPABLE_H_5DB254EF */ | 24 | #endif /* end of include guard: DROPPABLE_H_5DB254EF */ |