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
25864323
Kaydet (Commit)
25864323
authored
Agu 20, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add some comments to Rectangle mutation methods
Change-Id: I7e1d737fc1e7a431afd3cde74c2c974e0cbef9ef
üst
666fb214
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gen.hxx
include/tools/gen.hxx
+6
-3
No files found.
include/tools/gen.hxx
Dosyayı görüntüle @
25864323
...
@@ -371,7 +371,8 @@ public:
...
@@ -371,7 +371,8 @@ public:
inline
Point
RightCenter
()
const
;
inline
Point
RightCenter
()
const
;
inline
Point
Center
()
const
;
inline
Point
Center
()
const
;
inline
void
Move
(
long
nHorzMove
,
long
nVertMove
);
/// Move the top and left edges by a delta, preserving width and height
inline
void
Move
(
long
nHorzMoveDelta
,
long
nVertMoveDelta
);
inline
void
Transpose
();
inline
void
Transpose
();
inline
void
SetPos
(
const
Point
&
rPoint
);
inline
void
SetPos
(
const
Point
&
rPoint
);
void
SetSize
(
const
Size
&
rSize
);
void
SetSize
(
const
Size
&
rSize
);
...
@@ -415,8 +416,10 @@ public:
...
@@ -415,8 +416,10 @@ public:
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.
/// 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
;
}
/// Set the left edge of the rectangle to x, preserving the width
void
setY
(
long
n
)
{
nBottom
+=
n
-
nTop
;
nTop
=
n
;
}
void
setX
(
long
x
)
{
nLeft
=
x
;
nRight
+=
x
-
nLeft
;
}
/// Set the top edge of the rectangle to y, preserving the height
void
setY
(
long
y
)
{
nTop
=
y
;
nBottom
+=
y
-
nTop
;
}
void
setWidth
(
long
n
)
{
nRight
=
nLeft
+
n
;
}
void
setWidth
(
long
n
)
{
nRight
=
nLeft
+
n
;
}
void
setHeight
(
long
n
)
{
nBottom
=
nTop
+
n
;
}
void
setHeight
(
long
n
)
{
nBottom
=
nTop
+
n
;
}
/// Returns the string representation of the rectangle, format is "x, y, width, height".
/// Returns the string representation of the rectangle, format is "x, y, width, height".
...
...
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