Pre-resize fillparent
This commit is contained in:
@@ -63,7 +63,7 @@ cWindow::cWindow( cWindow* parent /*= nullptr*/, const signed int id /*= -1*/, c
|
||||
DebugDisplay();
|
||||
}
|
||||
|
||||
///Functions
|
||||
/// Functions
|
||||
const bool cWindow::Inside( const MathEngine::iVector2& location ) const
|
||||
{
|
||||
bool rtn = false;
|
||||
@@ -96,7 +96,7 @@ const bool cWindow::RemoveChild( cWindow* obj )
|
||||
return rtn;
|
||||
}
|
||||
|
||||
///Sets
|
||||
/// Sets
|
||||
/*static*/ void cWindow::PositionDefault( const GUIHelpers::Position& pos )
|
||||
{
|
||||
if (pos.x >= 0)
|
||||
@@ -197,7 +197,7 @@ void cWindow::setParent( cWindow* parent )
|
||||
mp_parent = parent;
|
||||
}
|
||||
|
||||
///Gets
|
||||
/// Gets
|
||||
const GUIHelpers::Position cWindow::getCenter( const bool pad /*= true*/ ) const
|
||||
{
|
||||
GUIHelpers::Position rtn = { 0, 0 };
|
||||
@@ -292,7 +292,7 @@ cWindow* cWindow::getParent()
|
||||
return GUIHelpers::eType::CWINDOW;
|
||||
}
|
||||
|
||||
///Protected
|
||||
/// protected
|
||||
|
||||
/*virtual*/ void cWindow::Resize()
|
||||
{
|
||||
@@ -459,14 +459,14 @@ std::vector<cWindow*>& cWindow::getChildren()
|
||||
return m_children;
|
||||
}
|
||||
|
||||
//private
|
||||
void cWindow::AddSize( int x, int y, GUIHelpers::Size& mySize ) const
|
||||
/// private
|
||||
void cWindow::AddSize( const int x, const int y, GUIHelpers::Size& mySize ) const
|
||||
{
|
||||
int& addFrom = x;
|
||||
int& largestFrom = y;
|
||||
int addFrom = x;
|
||||
int largestFrom = y;
|
||||
|
||||
int& addTo = mySize.x;
|
||||
int& largestTo = mySize.y;
|
||||
int addTo = mySize.x;
|
||||
int largestTo = mySize.y;
|
||||
|
||||
if (m_orientation == GUIHelpers::eOrientation::HORIZONTAL) {
|
||||
addFrom = y;
|
||||
|
||||
Reference in New Issue
Block a user