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
f1bdd56b
Kaydet (Commit)
f1bdd56b
authored
Nis 12, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
document VclContainer a bit
Change-Id: Ib00a0ab1c2e382547041137c11f8955140b8113d
üst
0557453a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
layout.hxx
vcl/inc/vcl/layout.hxx
+14
-9
No files found.
vcl/inc/vcl/layout.hxx
Dosyayı görüntüle @
f1bdd56b
...
...
@@ -21,15 +21,6 @@ class VCL_DLLPUBLIC VclContainer : public Window
{
public
:
VclContainer
(
Window
*
pParent
,
WinBits
nStyle
=
WB_HIDE
);
virtual
Size
GetOptimalSize
()
const
;
virtual
void
SetPosSizePixel
(
const
Point
&
rNewPos
,
const
Size
&
rNewSize
);
virtual
void
SetPosPixel
(
const
Point
&
rAllocPos
);
virtual
void
SetSizePixel
(
const
Size
&
rAllocation
);
void
markLayoutDirty
()
{
m_bLayoutDirty
=
true
;
}
//These take into account the external margins of the rWindow widget
//while GetOptimalSize/get_preferred_size and SetPosSizePixel are
...
...
@@ -41,10 +32,24 @@ public:
//the rWindows alignment desires within that allocation
static
void
setLayoutAllocation
(
Window
&
rWindow
,
const
Point
&
rPos
,
const
Size
&
rSize
);
void
markLayoutDirty
()
{
m_bLayoutDirty
=
true
;
}
protected
:
//these are the two that need to be implemented by
//containers, figure out how much space you want...
virtual
Size
calculateRequisition
()
const
=
0
;
//..and decide what to do when set to this size
virtual
void
setAllocation
(
const
Size
&
rAllocation
)
=
0
;
virtual
sal_uInt16
getDefaultAccessibleRole
()
const
;
public
:
//you don't want to override these
virtual
Size
GetOptimalSize
()
const
;
virtual
void
SetPosSizePixel
(
const
Point
&
rNewPos
,
const
Size
&
rNewSize
);
virtual
void
SetPosPixel
(
const
Point
&
rAllocPos
);
virtual
void
SetSizePixel
(
const
Size
&
rAllocation
);
private
:
bool
m_bLayoutDirty
;
};
...
...
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