MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / getAbsoluteSize

Method getAbsoluteSize

src/ui/View.cpp:184–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184Math::float2 View::getAbsoluteSize()
185{
186 if (!m_pParent)
187 return m_Size;
188
189 Math::float2 abs = m_pParent->getAbsoluteSize();
190
191 return Math::float2(m_Size.x * abs.x, m_Size.y * abs.y);
192}
193
194void View::addChild(View* pView)
195{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected