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

Method indicate

core/ui/UIPageViewIndicator.cpp:106–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void PageViewIndicator::indicate(ssize_t index)
107{
108 if (index < 0 || index >= _indexNodes.size())
109 {
110 return;
111 }
112 Sprite* oldOverlappingNode = _currentOverlappingIndexNode;
113 _currentOverlappingIndexNode = _indexNodes.at(index);
114 if (oldOverlappingNode != _currentOverlappingIndexNode)
115 {
116 if (oldOverlappingNode)
117 oldOverlappingNode->setVisible(true);
118 _currentOverlappingIndexNode->setVisible(false);
119 _currentIndexNode->setPosition(_currentOverlappingIndexNode->getPosition());
120 }
121}
122
123void PageViewIndicator::rearrange()
124{

Callers 4

doLayoutMethod · 0.80
moveInnerContainerMethod · 0.80

Calls 5

sizeMethod · 0.45
atMethod · 0.45
setVisibleMethod · 0.45
setPositionMethod · 0.45
getPositionMethod · 0.45

Tested by

no test coverage detected