23 lines
364 B
C++
23 lines
364 B
C++
#pragma once
|
|
|
|
#include "Element.h"
|
|
|
|
#include "game/atlas/asset/AtlasTexture.h"
|
|
|
|
namespace Gui {
|
|
|
|
/**
|
|
* A simple box element that may have background and/or children.
|
|
*/
|
|
|
|
class BoxElement: public Element {
|
|
public:
|
|
using Element::Element;
|
|
|
|
virtual void updateElement() override;
|
|
|
|
protected:
|
|
optional<any> curBg;
|
|
optional<AtlasTexture> tex;
|
|
};
|
|
} |