MCPcopy Create free account
hub / github.com/MyGUI/mygui / overrideArrange

Method overrideArrange

UnitTests/UnitTest_HyperTextBox/StackPanel.cpp:33–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void StackPanel::overrideArrange()
34 {
35 int offset = 0;
36
37 EnumeratorWidgetPtr child = getEnumerator();
38 while (child.next())
39 {
40 const IntSize& childSize = Panel::getDesiredSize(child.current());
41 IntCoord coord;
42
43 int height = childSize.height;
44 coord.set(0, offset, getWidth(), height);
45
46 Panel::updateArrange(child.current(), coord);
47
48 offset += height + mSpacer.height;
49 }
50 }
51
52 const IntSize& StackPanel::getSpacer() const
53 {

Callers

nothing calls this directly

Calls 4

getWidthFunction · 0.85
nextMethod · 0.45
currentMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected