I should have commit when I knew what changes I made.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user