MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetPositionSize

Method GetPositionSize

src/Wisp/WispWindow.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void CWindow::GetPositionSize(int *x, int *y, int *width, int *height)
66{
67#if SDL_VERSION_ATLEAST(2, 0, 5)
68 int borderH;
69 SDL_GetWindowBordersSize(m_window, &borderH, nullptr, nullptr, nullptr);
70#else
71 int borderH = 0;
72#endif
73 SDL_GetWindowPosition(m_window, x, y);
74 *y = std::max(*y, borderH);
75 SDL_GetWindowSize(m_window, width, height);
76}
77
78void CWindow::SetMinSize(const CSize &newMinSize)
79{

Callers 1

SaveMethod · 0.80

Calls 3

SDL_GetWindowBordersSizeFunction · 0.85
SDL_GetWindowPositionFunction · 0.85
SDL_GetWindowSizeFunction · 0.85

Tested by

no test coverage detected