diff options
Diffstat (limited to 'src/entitywidget.h')
-rw-r--r-- | src/entitywidget.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/entitywidget.h b/src/entitywidget.h index 1bdfb93..2eb1a42 100644 --- a/src/entitywidget.h +++ b/src/entitywidget.h @@ -34,6 +34,10 @@ public: return &entitywidget_entityproperties; } + inline const bool selected() const { + return is_selected; + } + signals: /** * @brief this signal is emitted if the entity is clicked with the left mouse button @@ -41,9 +45,19 @@ signals: void clicked(EntityWidget *entity); /** + * @brief this signal is emitted when the entity is first dragged + * */ + void dragStart(); + + /** + * @brief this signal is emitted when the entity stops being dragged + * */ + void dragStop(); + + /** * @brief this signal is emitted if the entity is dragged * */ - void dragged(EntityWidget *entity, int x, int y); + void dragMove(EntityWidget *entity, int x, int y); public slots: |