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

Method onWindowResized

tests/cpp-tests/Source/WindowTest/WindowTest.cpp:160–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void WindowTestResizedAndPositioned::onWindowResized(EventCustom* e)
161{
162 auto size = static_cast<Size*>(e->getUserData());
163 if (size == nullptr)
164 return;
165
166 label2->setString(fmt::format("size : {}, {}", (int)size->width, (int)size->height));
167}
168
169void WindowTestClose::onEnter()
170{

Callers

nothing calls this directly

Calls 3

formatFunction · 0.50
getUserDataMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected