MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / screenToClient

Method screenToClient

Engine/source/windowManager/sdl/sdlWindow.cpp:332–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332Point2I PlatformWindowSDL::screenToClient( const Point2I& pos )
333{
334 Point2I position;
335 SDL_GetWindowPosition( mWindowHandle, &position.x, &position.y );
336 return pos - position;
337}
338
339void PlatformWindowSDL::centerWindow()
340{

Callers 2

guiCanvas.cppFile · 0.45
cursorInControlMethod · 0.45

Calls 1

SDL_GetWindowPositionFunction · 0.85

Tested by

no test coverage detected