40 lines
1.4 KiB
C++
40 lines
1.4 KiB
C++
#include "cPanel.hpp"
|
|
|
|
|
|
using GUIEngine::cPanel;
|
|
|
|
/*static*/ const UtilityEngine::cString cPanel::sNAME = "panel";
|
|
|
|
cPanel::cPanel( 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*/ )
|
|
{
|
|
Create( parent, id, orientation, align, layout, pos, size, padding, name );
|
|
}
|
|
|
|
/*virtual*/ cPanel::~cPanel()
|
|
{}
|
|
|
|
/// Functions
|
|
/*virtual*/ void cPanel::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*/ )
|
|
{
|
|
padding;
|
|
cLayout::Create( parent, id, orientation, align, layout, pos, size, { 0,0,0,0 }, name );
|
|
}
|
|
|
|
/*virtual*/ void cPanel::Display()
|
|
{
|
|
cLayout::Display();
|
|
}
|
|
|
|
/*virtual*/ const GUIHelpers::eType cPanel::getType() const
|
|
{
|
|
return GUIHelpers::eType::CPANEL;
|
|
}
|
|
|
|
/*virtual*/ const GUIHelpers::RGBA& cPanel::getDebugColour() const
|
|
{
|
|
return GUIHelpers::RED;
|
|
} |