summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qgraphicssystem_dd.cpp29
-rw-r--r--qgraphicssystem_dd.h3
2 files changed, 32 insertions, 0 deletions
diff --git a/qgraphicssystem_dd.cpp b/qgraphicssystem_dd.cpp
index 7f680c3..e48d078 100644
--- a/qgraphicssystem_dd.cpp
+++ b/qgraphicssystem_dd.cpp
@@ -134,6 +134,35 @@ void QDevDaysWindowSurface::endPaint(const QRegion &region)
else
qDebug() << "WINDOW: failed to unlock shared memory";
}
+
+
+void QDevDaysWindowSurface::setVisible(bool visible)
+{
+ qDebug() << "WINDOW: setVisible()" << visible;
+ Request request(visible ? Request::ShowWindowRequest : Request::HideWindowRequest, m_id);
+ m_system->sendRequest(request);
+}
+
+
+
+void QDevDaysWindowSurface::raise()
+{
+ qDebug() << "WINDOW: raise()";
+ Request request(Request::RaiseWindowRequest, m_id);
+ m_system->sendRequest(request);
+
+}
+
+void QDevDaysWindowSurface::lower()
+{
+ qDebug() << "WINDOW: lower()";
+ Request request(Request::LowerWindowRequest, m_id);
+ m_system->sendRequest(request);
+
+}
+
+
+
/*
void QDevDaysWindowSurface::handleMouseEvent(const Event &event)
{
diff --git a/qgraphicssystem_dd.h b/qgraphicssystem_dd.h
index cfb5088..c17224d 100644
--- a/qgraphicssystem_dd.h
+++ b/qgraphicssystem_dd.h
@@ -49,6 +49,9 @@ public:
void beginPaint(const QRegion &region);
void endPaint(const QRegion &region);
+ void setVisible(bool visible);
+ void raise();
+ void lower();
// event handlers
//void handleMouseEvent(const Event &event);