Basic UI quad, yay
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
#include "Element.h"
|
||||
|
||||
using namespace Seele;
|
||||
using namespace Seele::UI;
|
||||
|
||||
Element::Element()
|
||||
{
|
||||
}
|
||||
|
||||
Element::~Element()
|
||||
{
|
||||
}
|
||||
|
||||
void Element::addChild(PElement element)
|
||||
{
|
||||
children.add(element);
|
||||
}
|
||||
|
||||
const Array<PElement> Element::getChildren()
|
||||
{
|
||||
return children;
|
||||
}
|
||||
|
||||
void Element::clear()
|
||||
{
|
||||
children.clear();
|
||||
}
|
||||
|
||||
void Element::remove(PElement element)
|
||||
{
|
||||
children.remove(children.find(element));
|
||||
}
|
||||
|
||||
void Element::setEnabled(bool newEnabled)
|
||||
{
|
||||
enabled = newEnabled;
|
||||
}
|
||||
|
||||
bool Element::isEnabled() const
|
||||
{
|
||||
return enabled;
|
||||
}
|
||||
|
||||
Rect& Element::getBoundingBox()
|
||||
{
|
||||
return boundingBox;
|
||||
}
|
||||
|
||||
const Rect Element::getBoundingBox() const
|
||||
{
|
||||
return boundingBox;
|
||||
}
|
||||
Reference in New Issue
Block a user