Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/entitywidget.h')
-rw-r--r--src/entitywidget.h16
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: