cWindows removed Ref from enum gets and sets

This commit is contained in:
2018-08-30 10:25:29 -04:00
parent 335166ea00
commit ba16cd4bd4
3 changed files with 30 additions and 30 deletions
@@ -20,8 +20,8 @@ using GUIEngine::cWindow;
/*static*/ GUIHelpers::eLayout cWindow::sLAYOUT = GUIHelpers::eLayout::FILL_PARENT;
/*static*/ GUIHelpers::eOrientation cWindow::sORIENTATION = GUIHelpers::eOrientation::NONE;
cWindow::cWindow( cWindow* parent /*= nullptr*/, const signed int id /*= -1*/, const GUIHelpers::eOrientation& orientation /*= sORIENTATION*/, const GUIHelpers::eAlign& align /*= sALIGN*/,
const GUIHelpers::eLayout& layout /*= sLAYOUT*/, const GUIHelpers::Position& pos /*= sPOSITION*/, const GUIHelpers::Size& size /*= sSIZE*/,
cWindow::cWindow( cWindow* parent /*= nullptr*/, const signed int id /*= -1*/, const GUIHelpers::eOrientation orientation /*= sORIENTATION*/, const GUIHelpers::eAlign align /*= sALIGN*/,
const GUIHelpers::eLayout layout /*= sLAYOUT*/, const GUIHelpers::Position& pos /*= sPOSITION*/, const GUIHelpers::Size& size /*= sSIZE*/,
const GUIHelpers::Padding& padding /*= sPADDING*/, const cString& name /*= sNAME*/ )
: cObject(id)
{
@@ -37,8 +37,8 @@ cWindow::cWindow( cWindow* parent /*= nullptr*/, const signed int id /*= -1*/, c
m_children.clear();
}
/*virtual*/ void cWindow::Create( cWindow* parent /*= nullptr*/, const signed int id /*= -1*/, const GUIHelpers::eOrientation& orientation /*= sORIENTATION*/, const GUIHelpers::eAlign& align /*= sALIGN*/,
const GUIHelpers::eLayout& layout /*= sLAYOUT*/, const GUIHelpers::Position& pos /*= sPOSITION*/, const GUIHelpers::Size& size /*= sSIZE*/,
/*virtual*/ void cWindow::Create( cWindow* parent /*= nullptr*/, const signed int id /*= -1*/, const GUIHelpers::eOrientation orientation /*= sORIENTATION*/, const GUIHelpers::eAlign align /*= sALIGN*/,
const GUIHelpers::eLayout layout /*= sLAYOUT*/, const GUIHelpers::Position& pos /*= sPOSITION*/, const GUIHelpers::Size& size /*= sSIZE*/,
const GUIHelpers::Padding& padding /*= sPADDING*/, const cString& name /*= sNAME*/ )
{
mp_parent = parent;
@@ -119,25 +119,25 @@ const bool cWindow::RemoveChild( cWindow* obj )
sPADDING = pad;
}
/*static*/ void cWindow::AlignDefault( const GUIHelpers::eAlign& align )
/*static*/ void cWindow::AlignDefault( const GUIHelpers::eAlign align )
{
if (align != GUIHelpers::eAlign::DEFAULT_ALIGN)
sALIGN = align;
}
/*static*/ void cWindow::LayoutDefault( const GUIHelpers::eLayout& layout )
/*static*/ void cWindow::LayoutDefault( const GUIHelpers::eLayout layout )
{
if (layout != GUIHelpers::eLayout::DEFAULT_LAYOUT)
sLAYOUT = layout;
}
/*static*/ void cWindow::OrientationDefault( const GUIHelpers::eOrientation& orientation )
/*static*/ void cWindow::OrientationDefault( const GUIHelpers::eOrientation orientation )
{
if (orientation != GUIHelpers::eOrientation::DEFAULT_ORIENTATION)
sORIENTATION = orientation;
}
void cWindow::setOrientation( const GUIHelpers::eOrientation& orientation /*= sORIENTATION*/ )
void cWindow::setOrientation( const GUIHelpers::eOrientation orientation /*= sORIENTATION*/ )
{
if (orientation == GUIHelpers::eOrientation::DEFAULT_ORIENTATION)
m_orientation = cWindow::sORIENTATION;
@@ -145,7 +145,7 @@ void cWindow::setOrientation( const GUIHelpers::eOrientation& orientation /*= sO
m_orientation = orientation;
}
void cWindow::setAlign( const GUIHelpers::eAlign& align /*= sALIGN*/ )
void cWindow::setAlign( const GUIHelpers::eAlign align /*= sALIGN*/ )
{
if (align == GUIHelpers::eAlign::DEFAULT_ALIGN)
m_align = cWindow::sALIGN;
@@ -154,7 +154,7 @@ void cWindow::setAlign( const GUIHelpers::eAlign& align /*= sALIGN*/ )
RebuildPos();
}
void cWindow::setLayout( const GUIHelpers::eLayout& layout /*= sLAYOUT*/ )
void cWindow::setLayout( const GUIHelpers::eLayout layout /*= sLAYOUT*/ )
{
if (layout == GUIHelpers::eLayout::DEFAULT_LAYOUT)
m_layout = cWindow::sLAYOUT;
@@ -214,17 +214,17 @@ const GUIHelpers::Position cWindow::getCenter( const bool pad /*= true*/ ) const
return rtn;
}
const GUIHelpers::eOrientation& cWindow::getOrientation() const
const GUIHelpers::eOrientation cWindow::getOrientation() const
{
return m_orientation;
}
const GUIHelpers::eAlign& cWindow::getAlign() const
const GUIHelpers::eAlign cWindow::getAlign() const
{
return m_align;
}
const GUIHelpers::eLayout& cWindow::getLayout() const
const GUIHelpers::eLayout cWindow::getLayout() const
{
if (m_layout == GUIHelpers::eLayout::MATCH_PARENT) {
if (mp_parent != nullptr)
@@ -343,7 +343,7 @@ const unsigned long int cWindow::getFillParentSize()
RePos();
}
/*virtual*/ void cWindow::RebuildLayout( const GUIHelpers::eLayout& layout )
/*virtual*/ void cWindow::RebuildLayout( const GUIHelpers::eLayout layout )
{
GUIHelpers::Size mySize = { 0, 0 };
std::vector<cWindow*>::iterator it;
@@ -510,7 +510,7 @@ std::vector<cWindow*>& cWindow::getChildren()
}
/// private
void cWindow::Rebuild(cWindow * const parent, const GUIHelpers::eLayout & layout)
void cWindow::Rebuild(cWindow * const parent, const GUIHelpers::eLayout layout)
{
}