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

Method doLayout

core/ui/UIListView.cpp:550–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550void ListView::doLayout()
551{
552 if (!_innerContainerDoLayoutDirty)
553 {
554 return;
555 }
556
557 ssize_t length = _items.size();
558 for (int i = 0; i < length; ++i)
559 {
560 Widget* item = _items.at(i);
561 item->setLocalZOrder(i);
562 remedyLayoutParameter(item);
563 }
564 updateInnerContainerSize();
565 _innerContainer->forceDoLayout();
566 _innerContainerDoLayoutDirty = false;
567}
568
569void ListView::addEventListener(const ccListViewCallback& callback)
570{

Callers

nothing calls this directly

Calls 4

forceDoLayoutMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45
setLocalZOrderMethod · 0.45

Tested by

no test coverage detected