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

Method onWindowPositioned

tests/cpp-tests/Source/WindowTest/WindowTest.cpp:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void WindowTestResizedAndPositioned::onWindowPositioned(EventCustom* e)
152{
153 auto pos = static_cast<Vec2*>(e->getUserData());
154 if (pos == nullptr)
155 return;
156
157 label1->setString(fmt::format("pos : {}, {}", (int)pos->x, (int)pos->y));
158}
159
160void WindowTestResizedAndPositioned::onWindowResized(EventCustom* e)
161{

Callers

nothing calls this directly

Calls 3

formatFunction · 0.50
getUserDataMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected