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

Method SetClientBounds

Source/Engine/Platform/SDL/SDLWindow.cpp:689–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689void SDLWindow::SetClientBounds(const Rectangle& clientArea)
690{
691 Int2 newPos = Int2(clientArea.GetTopLeft());
692 int newW = static_cast<int>(clientArea.GetWidth());
693 int newH = static_cast<int>(clientArea.GetHeight());
694
695 SDL_SetWindowSize(_window, newW, newH);
696 SetSDLWindowScreenPosition(this, newPos);
697}
698
699void GetRelativeWindowOffset(WindowType type, SDLWindow* parentWindow, Int2& positionOffset)
700{

Callers

nothing calls this directly

Calls 4

Int2Class · 0.85
GetWidthMethod · 0.80
GetHeightMethod · 0.45

Tested by

no test coverage detected