summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qlibwindowmanager.cpp16
-rw-r--r--src/qlibwindowmanager.h3
2 files changed, 18 insertions, 1 deletions
diff --git a/src/qlibwindowmanager.cpp b/src/qlibwindowmanager.cpp
index bc313e5..79d7f79 100644
--- a/src/qlibwindowmanager.cpp
+++ b/src/qlibwindowmanager.cpp
@@ -82,7 +82,21 @@ int QLibWindowmanager::endDraw(const QString &label) {
string clabel = label.toStdString();
json_object_object_add(obj, wm->kKeyDrawingName, json_object_new_string(clabel.c_str()));
return this->wm->endDraw(obj);
- }
+}
+
+int QLibWindowmanager::getDisplayInfo(json_object *out) {
+ return this->wm->getDisplayInfo(out);
+}
+
+int QLibWindowmanager::getAreaInfo(const QString &label, json_object *out) {
+ string clabel = label.toStdString();
+ return this->wm->getAreaInfo(clabel.c_str(), out);
+}
+
+int QLibWindowmanager::getCarInfo(const QString &label, json_object *out) {
+ string clabel = label.toStdString();
+ return this->wm->getCarInfo(clabel.c_str(), out);
+}
void QLibWindowmanager::set_event_handler(enum QEventType et,
handler_fun f) {
diff --git a/src/qlibwindowmanager.h b/src/qlibwindowmanager.h
index 3754778..deba7fd 100644
--- a/src/qlibwindowmanager.h
+++ b/src/qlibwindowmanager.h
@@ -66,6 +66,9 @@ public:
Q_INVOKABLE int activateSurface(const QString &label, const QString &drawing_area);
Q_INVOKABLE int deactivateSurface(const QString &label);
Q_INVOKABLE int endDraw(const QString &label);
+ Q_INVOKABLE int getDisplayInfo(json_object *out);
+ Q_INVOKABLE int getAreaInfo(const QString &label, json_object *out);
+ Q_INVOKABLE int getCarInfo(const QString &label, json_object *out);
void set_event_handler(enum QEventType et, handler_fun f);
public slots: