Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8c6ec8e4
Kaydet (Commit)
8c6ec8e4
authored
May 10, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
some work into intercepting mouse events in OpenGL window
Change-Id: I46dcfed7d5398d994c68ed7cfe4408f9f5719bf1
üst
01e04598
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
openglwin.hxx
include/vcl/openglwin.hxx
+1
-0
openglwin.cxx
vcl/source/window/openglwin.cxx
+9
-0
No files found.
include/vcl/openglwin.hxx
Dosyayı görüntüle @
8c6ec8e4
...
...
@@ -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
;
...
...
vcl/source/window/openglwin.cxx
Dosyayı görüntüle @
8c6ec8e4
...
...
@@ -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: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment