Kaydet (Commit) 8c6ec8e4 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

some work into intercepting mouse events in OpenGL window

Change-Id: I46dcfed7d5398d994c68ed7cfe4408f9f5719bf1
üst 01e04598
......@@ -27,6 +27,7 @@ public:
OpenGLContext* getContext();
virtual void Paint(const Rectangle&) SAL_OVERRIDE {}
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
private:
boost::scoped_ptr<OpenGLWindowImpl> mpImpl;
......
......@@ -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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment