I should have commit when I knew what changes I made.

This commit is contained in:
2019-08-21 20:12:59 -04:00
parent 05ffe20bb4
commit 1e1a33f3f9
23 changed files with 820 additions and 175 deletions
@@ -1,6 +1,5 @@
#include "cWindow.hpp"
#include "../FXEngine/cGFX.hpp"
#include "../UtilityEngine/cUtility.hpp"
@@ -257,6 +256,21 @@ const GUIHelpers::Size cWindow::getSize( const bool pad /*= true*/ ) const
return rtn;
}
const GUIHelpers::Area cWindow::getArea( const bool pad /*= false*/ ) const
{
GUIHelpers::Area rtn = { 0, 0, 0, 0 };
GUIHelpers::Position tmp = getPosition(false);
rtn.x = tmp.x;
rtn.y = tmp.y;
GUIHelpers::Size tmp2 = getSize(false);
rtn.w = tmp2.x;
rtn.h = tmp2.y;
return rtn;
}
const GUIHelpers::Padding& cWindow::getPadding() const
{
return m_padding;