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

Method updateInset

extensions/GUI/src/GUI/ScrollView/ScrollView.cpp:509–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509void ScrollView::updateInset()
510{
511 if (this->getContainer() != nullptr)
512 {
513 _maxInset = this->maxContainerOffset();
514 _maxInset.set(_maxInset.x + _viewSize.width * INSET_RATIO, _maxInset.y + _viewSize.height * INSET_RATIO);
515 _minInset = this->minContainerOffset();
516 _minInset.set(_minInset.x - _viewSize.width * INSET_RATIO, _minInset.y - _viewSize.height * INSET_RATIO);
517 }
518}
519
520/**
521 * make sure all children go to the container

Callers 2

setContentSizeMethod · 0.95

Calls 4

getContainerMethod · 0.95
maxContainerOffsetMethod · 0.95
minContainerOffsetMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected