MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / DebugFocusCB

Function DebugFocusCB

NetStream/source/debug.cpp:49–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49void DebugFocusCB(ui::Widget* pre, ui::Widget* curr, void *data)
50{
51 if (pre)
52 {
53 wchar_t buf[256];
54 math::v4 pos;
55 math::v4 *size;
56 math::v4 off;
57 pos = pre->GetPos(0, NULL, off);
58 size = pre->GetSize(0);
59 IDParam name = pre->GetName();
60 if (!name.GetID().empty())
61 {
62 wstring nstr;
63 common::Utf8ToUtf16(name.GetID(), &nstr);
64 sce_paf_swprintf(buf, 256, L"%s\nx: %.2f\ny: %.2f\nwidth: %.2f\nheight: %.2f", nstr.c_str(), pos.x().f(), pos.y().f(), size->x().f(), size->y().f());
65 }
66 else
67 {
68 sce_paf_swprintf(buf, 256, L"0x%08X\nx: %.2f\ny: %.2f\nwidth: %.2f\nheight: %.2f", name.GetIDHash(), pos.x().f(), pos.y().f(), size->x().f(), size->y().f());
69 }
70 s_debugText->SetString(buf);
71 }
72}
73
74void LeakTestTask(void *pUserData)
75{

Callers

nothing calls this directly

Calls 1

GetSizeMethod · 0.45

Tested by

no test coverage detected