2021-08-20 16:19:10 -07:00
|
|
|
#pragma once
|
|
|
|
|
2021-08-19 13:33:08 -07:00
|
|
|
#include "Element.h"
|
|
|
|
|
2021-09-30 15:50:45 -07:00
|
|
|
#include "game/atlas/asset/AtlasTexture.h"
|
2021-08-19 20:45:39 -07:00
|
|
|
|
2021-08-19 13:33:08 -07:00
|
|
|
namespace Gui {
|
2021-08-20 16:19:10 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A simple box element that may have background and/or children.
|
|
|
|
*/
|
|
|
|
|
2021-08-19 13:33:08 -07:00
|
|
|
class BoxElement: public Element {
|
|
|
|
public:
|
|
|
|
using Element::Element;
|
|
|
|
|
|
|
|
virtual void updateElement() override;
|
2021-08-19 20:18:55 -07:00
|
|
|
|
|
|
|
protected:
|
|
|
|
optional<any> curBg;
|
2021-09-30 15:50:45 -07:00
|
|
|
optional<AtlasTexture> tex;
|
2021-08-19 13:33:08 -07:00
|
|
|
};
|
|
|
|
}
|