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
3d91d54c
Kaydet (Commit)
3d91d54c
authored
Nis 28, 2014
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
VCL move DrawCheckered from outdev.cxx to rect.cxx
Change-Id: I55cbab29e4e0d772e593f39ba48a3a2dffbce382
üst
db45e761
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
outdev.cxx
vcl/source/outdev/outdev.cxx
+0
-24
rect.cxx
vcl/source/outdev/rect.cxx
+24
-0
No files found.
vcl/source/outdev/outdev.cxx
Dosyayı görüntüle @
3d91d54c
...
@@ -985,28 +985,4 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
...
@@ -985,28 +985,4 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
return
bDrawn
;
return
bDrawn
;
}
}
void
OutputDevice
::
DrawCheckered
(
const
Point
&
rPos
,
const
Size
&
rSize
,
sal_uInt32
nLen
,
Color
aStart
,
Color
aEnd
)
{
const
sal_uInt32
nMaxX
(
rPos
.
X
()
+
rSize
.
Width
());
const
sal_uInt32
nMaxY
(
rPos
.
Y
()
+
rSize
.
Height
());
Push
(
PUSH_LINECOLOR
|
PUSH_FILLCOLOR
);
SetLineColor
();
for
(
sal_uInt32
x
(
0
),
nX
(
rPos
.
X
());
nX
<
nMaxX
;
x
++
,
nX
+=
nLen
)
{
const
sal_uInt32
nRight
(
std
::
min
(
nMaxX
,
nX
+
nLen
));
for
(
sal_uInt32
y
(
0
),
nY
(
rPos
.
Y
());
nY
<
nMaxY
;
y
++
,
nY
+=
nLen
)
{
const
sal_uInt32
nBottom
(
std
::
min
(
nMaxY
,
nY
+
nLen
));
SetFillColor
((
x
&
0x0001
)
^
(
y
&
0x0001
)
?
aStart
:
aEnd
);
DrawRect
(
Rectangle
(
nX
,
nY
,
nRight
,
nBottom
));
}
}
Pop
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/source/outdev/rect.cxx
Dosyayı görüntüle @
3d91d54c
...
@@ -121,6 +121,30 @@ void OutputDevice::DrawRect( const Rectangle& rRect,
...
@@ -121,6 +121,30 @@ void OutputDevice::DrawRect( const Rectangle& rRect,
mpAlphaVDev
->
DrawRect
(
rRect
,
nHorzRound
,
nVertRound
);
mpAlphaVDev
->
DrawRect
(
rRect
,
nHorzRound
,
nVertRound
);
}
}
void
OutputDevice
::
DrawCheckered
(
const
Point
&
rPos
,
const
Size
&
rSize
,
sal_uInt32
nLen
,
Color
aStart
,
Color
aEnd
)
{
const
sal_uInt32
nMaxX
(
rPos
.
X
()
+
rSize
.
Width
());
const
sal_uInt32
nMaxY
(
rPos
.
Y
()
+
rSize
.
Height
());
Push
(
PUSH_LINECOLOR
|
PUSH_FILLCOLOR
);
SetLineColor
();
for
(
sal_uInt32
x
(
0
),
nX
(
rPos
.
X
());
nX
<
nMaxX
;
x
++
,
nX
+=
nLen
)
{
const
sal_uInt32
nRight
(
std
::
min
(
nMaxX
,
nX
+
nLen
));
for
(
sal_uInt32
y
(
0
),
nY
(
rPos
.
Y
());
nY
<
nMaxY
;
y
++
,
nY
+=
nLen
)
{
const
sal_uInt32
nBottom
(
std
::
min
(
nMaxY
,
nY
+
nLen
));
SetFillColor
((
x
&
0x0001
)
^
(
y
&
0x0001
)
?
aStart
:
aEnd
);
DrawRect
(
Rectangle
(
nX
,
nY
,
nRight
,
nBottom
));
}
}
Pop
();
}
void
OutputDevice
::
DrawGrid
(
const
Rectangle
&
rRect
,
const
Size
&
rDist
,
sal_uLong
nFlags
)
void
OutputDevice
::
DrawGrid
(
const
Rectangle
&
rRect
,
const
Size
&
rDist
,
sal_uLong
nFlags
)
{
{
Rectangle
aDstRect
(
PixelToLogic
(
Point
()
),
GetOutputSize
()
);
Rectangle
aDstRect
(
PixelToLogic
(
Point
()
),
GetOutputSize
()
);
...
...
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