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

Method SetMask

ogsr_engine/xrGame/ui/UIStatic.cpp:511–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511void CUIStatic::SetMask(CUIFrameWindow* pMask)
512{
513 DetachChild(m_pMask);
514 m_pMask = pMask;
515 if (m_pMask)
516 {
517 AttachChild(m_pMask);
518 Frect r = GetWndRect();
519 m_pMask->SetWidth(r.right - r.left);
520 m_pMask->SetHeight(r.bottom - r.top);
521 }
522}
523
524// CGameFont::EAligment CUIStatic::GetTextAlign(){
525// return m_pLines->GetTextAlignment();

Callers 1

InitMethod · 0.80

Calls 2

SetWidthMethod · 0.45
SetHeightMethod · 0.45

Tested by

no test coverage detected