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

Method ClipperOff

ogsr_engine/xrGame/ui/UIStatic.cpp:424–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void CUIStatic::ClipperOff(CUIStaticItem& UIStaticItem)
425{
426 m_bClipper = false;
427
428 Frect out_rect;
429
430 out_rect.top = 0;
431 out_rect.bottom = GetHeight();
432 out_rect.left = 0;
433 out_rect.right = GetWidth();
434
435 Frect r;
436 r.x1 = out_rect.left;
437 r.x2 = out_rect.right < UIStaticItem.GetOriginalRectScaled().width() ? out_rect.right : UIStaticItem.GetOriginalRectScaled().width();
438
439 r.y1 = out_rect.top;
440 r.y2 = out_rect.bottom < UIStaticItem.GetOriginalRectScaled().height() ? out_rect.bottom : UIStaticItem.GetOriginalRectScaled().height();
441 UIStaticItem.SetRect(r);
442}
443
444void CUIStatic::ClipperOff() { ClipperOff(m_UIStaticItem); }
445

Callers 1

InitStaticMethod · 0.80

Calls 6

GetOriginalRectScaledMethod · 0.80
SetRectMethod · 0.80
GetHeightFunction · 0.50
GetWidthFunction · 0.50
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected