summaryrefslogtreecommitdiff
path: root/vcl/source/window/openglwin.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-10 08:24:54 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-12 03:00:05 +0200
commit8c6ec8e4c22814736c85e9ce29c63dd3044a35bc (patch)
tree445f820ffcc0063610341fee60ab64faf581c7eb /vcl/source/window/openglwin.cxx
parent01e04598ce1f512084676bf62f75626d1cd38614 (diff)
some work into intercepting mouse events in OpenGL window
Change-Id: I46dcfed7d5398d994c68ed7cfe4408f9f5719bf1
Diffstat (limited to 'vcl/source/window/openglwin.cxx')
-rw-r--r--vcl/source/window/openglwin.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx
index 3065718464b2..77ab2d9ea82d 100644
--- a/vcl/source/window/openglwin.cxx
+++ b/vcl/source/window/openglwin.cxx
@@ -9,6 +9,7 @@
#include <vcl/openglwin.hxx>
#include <vcl/opengl/OpenGLContext.hxx>
+#include <vcl/event.hxx>
class OpenGLWindowImpl
{
@@ -44,4 +45,12 @@ OpenGLContext* OpenGLWindow::getContext()
return mpImpl->getContext();
}
+void OpenGLWindow::MouseButtonDown( const MouseEvent& rMEvt )
+{
+ Point aPoint = rMEvt.GetPosPixel();
+
+ Color aColor = GetPixel(aPoint);
+ SAL_WARN("vcl.opengl", aColor.GetColor());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */