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

Method onSizeChanged

tests/fairygui-tests/Source/PullToRefreshScene.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void ScrollPaneHeader::onSizeChanged(EventContext*)
31{
32 if (_c1->getSelectedIndex() == 2 || _c1->getSelectedIndex() == 3)
33 return;
34
35 if (getHeight() > sourceSize.height)
36 _c1->setSelectedIndex(1);
37 else
38 _c1->setSelectedIndex(0);
39}
40
41void ScrollPaneHeader::setRefreshStatus(int value)
42{

Callers

nothing calls this directly

Calls 3

getHeightFunction · 0.50
getSelectedIndexMethod · 0.45
setSelectedIndexMethod · 0.45

Tested by

no test coverage detected