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
f420d65b
Kaydet (Commit)
f420d65b
authored
Tem 07, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: document Rectangle's get vs Get differences
Change-Id: Icf08f96c8d21f98a6f5a5a83b07447755f32257a
üst
10a3db37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gen.hxx
include/tools/gen.hxx
+4
-0
No files found.
include/tools/gen.hxx
Dosyayı görüntüle @
f420d65b
...
@@ -377,7 +377,9 @@ public:
...
@@ -377,7 +377,9 @@ public:
void
SetSize
(
const
Size
&
rSize
);
void
SetSize
(
const
Size
&
rSize
);
inline
Size
GetSize
()
const
;
inline
Size
GetSize
()
const
;
/// Returns the difference between right and left, assuming the range is inclusive.
inline
long
GetWidth
()
const
;
inline
long
GetWidth
()
const
;
/// Returns the difference between bottom and top, assuming the range is inclusive.
inline
long
GetHeight
()
const
;
inline
long
GetHeight
()
const
;
Rectangle
&
Union
(
const
Rectangle
&
rRect
);
Rectangle
&
Union
(
const
Rectangle
&
rRect
);
...
@@ -409,7 +411,9 @@ public:
...
@@ -409,7 +411,9 @@ public:
// ONE
// ONE
long
getX
()
const
{
return
nLeft
;
}
long
getX
()
const
{
return
nLeft
;
}
long
getY
()
const
{
return
nTop
;
}
long
getY
()
const
{
return
nTop
;
}
/// Returns the difference between right and left, assuming the range includes one end, but not the other.
long
getWidth
()
const
{
return
nRight
-
nLeft
;
}
long
getWidth
()
const
{
return
nRight
-
nLeft
;
}
/// Returns the difference between bottom and top, assuming the range includes one end, but not the other.
long
getHeight
()
const
{
return
nBottom
-
nTop
;
}
long
getHeight
()
const
{
return
nBottom
-
nTop
;
}
void
setX
(
long
n
)
{
nRight
+=
n
-
nLeft
;
nLeft
=
n
;
}
void
setX
(
long
n
)
{
nRight
+=
n
-
nLeft
;
nLeft
=
n
;
}
void
setY
(
long
n
)
{
nBottom
+=
n
-
nTop
;
nTop
=
n
;
}
void
setY
(
long
n
)
{
nBottom
+=
n
-
nTop
;
nTop
=
n
;
}
...
...
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