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
9ae37b8e
Kaydet (Commit)
9ae37b8e
authored
May 07, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor WheelWindow to use RenderContex
Change-Id: I59a7b31772e60a4da56b35e679928d8238b3d420
üst
56a45fcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
15 deletions
+29
-15
scrwnd.cxx
vcl/source/window/scrwnd.cxx
+28
-14
scrwnd.hxx
vcl/source/window/scrwnd.hxx
+1
-1
No files found.
vcl/source/window/scrwnd.cxx
Dosyayı görüntüle @
9ae37b8e
...
...
@@ -142,28 +142,42 @@ void ImplWheelWindow::ImplSetWheelMode( sal_uLong nWheelMode )
if
(
!
IsVisible
()
)
Show
();
I
mplDrawWheel
();
I
nvalidate
();
}
}
}
void
ImplWheelWindow
::
ImplDrawWheel
()
void
ImplWheelWindow
::
ImplDrawWheel
(
vcl
::
RenderContext
&
rRenderContext
)
{
sal_uInt16
nId
;
switch
(
mnWheelMode
)
switch
(
mnWheelMode
)
{
case
(
WHEELMODE_VH
):
nId
=
1
;
break
;
case
(
WHEELMODE_V
):
nId
=
2
;
break
;
case
(
WHEELMODE_H
):
nId
=
3
;
break
;
case
(
WHEELMODE_SCROLL_VH
):
nId
=
4
;
break
;
case
(
WHEELMODE_SCROLL_V
):
nId
=
5
;
break
;
case
(
WHEELMODE_SCROLL_H
):
nId
=
6
;
break
;
default
:
nId
=
0
;
break
;
case
WHEELMODE_VH
:
nId
=
1
;
break
;
case
WHEELMODE_V
:
nId
=
2
;
break
;
case
WHEELMODE_H
:
nId
=
3
;
break
;
case
WHEELMODE_SCROLL_VH
:
nId
=
4
;
break
;
case
WHEELMODE_SCROLL_V
:
nId
=
5
;
break
;
case
WHEELMODE_SCROLL_H
:
nId
=
6
;
break
;
default
:
nId
=
0
;
break
;
}
if
(
nId
)
DrawImage
(
Point
(),
maImgList
.
GetImage
(
nId
)
);
if
(
nId
)
rRenderContext
.
DrawImage
(
Point
(),
maImgList
.
GetImage
(
nId
)
);
}
void
ImplWheelWindow
::
ImplRecalcScrollValues
()
...
...
@@ -286,9 +300,9 @@ PointerStyle ImplWheelWindow::ImplGetMousePointer( long nDistX, long nDistY )
return
eStyle
;
}
void
ImplWheelWindow
::
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
void
ImplWheelWindow
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
{
ImplDrawWheel
();
ImplDrawWheel
(
rRenderContext
);
}
void
ImplWheelWindow
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
...
...
vcl/source/window/scrwnd.hxx
Dosyayı görüntüle @
9ae37b8e
...
...
@@ -56,7 +56,7 @@ private:
void
ImplSetRegion
(
const
Bitmap
&
rRegionBmp
);
using
Window
::
ImplGetMousePointer
;
PointerStyle
ImplGetMousePointer
(
long
nDistX
,
long
nDistY
);
void
ImplDrawWheel
();
void
ImplDrawWheel
(
vcl
::
RenderContext
&
rRenderContext
);
void
ImplRecalcScrollValues
();
DECL_LINK_TYPED
(
ImplScrollHdl
,
Timer
*
,
void
);
...
...
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