summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-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: */