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

Method normalTextureScaleChangedWithSize

core/ui/UIEditBox/UIEditBox.cpp:759–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759void EditBox::normalTextureScaleChangedWithSize()
760{
761 _normalRenderer->setPreferredSize(_contentSize);
762 _normalRenderer->setPosition(_contentSize.width / 2.0f, _contentSize.height / 2.0f);
763}
764
765void EditBox::pressedTextureScaleChangedWithSize()
766{

Callers

nothing calls this directly

Calls 2

setPreferredSizeMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected