Zepha/src/client/gui/BoxElement.h

23 lines
364 B
C
Raw Normal View History

2021-08-20 16:19:10 -07:00
#pragma once
2021-08-19 13:33:08 -07:00
#include "Element.h"
#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;
protected:
optional<any> curBg;
optional<AtlasTexture> tex;
2021-08-19 13:33:08 -07:00
};
}