Guest User

Untitled

a guest
Nov 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.  // calculate dimension
  2.             if(m_anchor & A_BOTTOM && m_anchor & A_TOP)
  3.             {
  4.                 m_dimension.y = m_parent->GetDimension().y - (m_margin.bottom +  m_margin.top);
  5.             }
  6.             if(m_anchor & A_LEFT && m_anchor & A_RIGHT)
  7.             {
  8.                 m_dimension.x = m_parent->GetDimension().x - (m_margin.left +  m_margin.right);
  9.             }
Add Comment
Please, Sign In to add comment