MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / GetAbsoluteRect

Method GetAbsoluteRect

ogsr_engine/xrGame/ui/UIWindow.cpp:308–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void CUIWindow::GetAbsoluteRect(Frect& r)
309{
310 //. Frect rect;
311
312 if (GetParent() == NULL)
313 {
314 GetWndRect(r);
315 return;
316 }
317 //. rect = GetParent()->GetAbsoluteRect();
318 GetParent()->GetAbsoluteRect(r);
319
320 Frect rr;
321 GetWndRect(rr);
322 r.left += rr.left;
323 r.top += rr.top;
324 r.right = r.left + GetWidth();
325 r.bottom = r.top + GetHeight();
326 //. return rect;
327}
328
329//реакция на мышь
330//координаты курсора всегда, кроме начального вызова

Callers 9

SetupCurrentMapMethod · 0.80
UIMiniMapInitFunction · 0.80
OnKeyboardHoldMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
TextureClipperMethod · 0.80
DrawMethod · 0.80
ActiveMapRectMethod · 0.80
ConvertCursorPosToMapMethod · 0.80

Calls 3

GetParentFunction · 0.85
GetWidthFunction · 0.50
GetHeightFunction · 0.50

Tested by

no test coverage detected