MCPcopy Create free account
hub / github.com/axmolengine/axmol / doLayout

Method doLayout

core/ui/UIPageView.cpp:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void PageView::doLayout()
76{
77 if (!_innerContainerDoLayoutDirty)
78 {
79 return;
80 }
81
82 ListView::doLayout();
83 if (_indicator != nullptr)
84 {
85 _currentPageIndex = getIndex(getCenterItemInCurrentView());
86 _indicator->indicate(_currentPageIndex);
87 }
88 _innerContainerDoLayoutDirty = false;
89}
90
91void PageView::setDirection(PageView::Direction direction)
92{

Callers

nothing calls this directly

Calls 1

indicateMethod · 0.80

Tested by

no test coverage detected