MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetByNativePtr

Method GetByNativePtr

Source/Engine/Platform/Base/WindowsManager.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23WindowsManagerService WindowsManagerServiceInstance;
24
25Window* WindowsManager::GetByNativePtr(void* handle)
26{
27 Window* result = nullptr;
28 WindowsLocker.Lock();
29 for (int32 i = 0; i < Windows.Count(); i++)
30 {
31 if (Windows[i]->GetNativePtr() == handle)
32 {
33 result = Windows[i];
34 break;
35 }
36 }
37 WindowsLocker.Unlock();
38 return result;
39}
40
41void WindowsManager::Register(Window* win)
42{

Callers

nothing calls this directly

Calls 4

LockMethod · 0.80
UnlockMethod · 0.80
CountMethod · 0.45
GetNativePtrMethod · 0.45

Tested by

no test coverage detected