WIP Frame

This commit is contained in:
2014-04-23 02:19:17 +02:00
parent ee34b15cf1
commit dfd9425473
+20 -1
View File
@@ -1,12 +1,31 @@
#ifndef GUI_Frame_h__
#define GUI_Frame_h__
#include <memory>
#include "Util/Rectangle.h"
namespace GUI
{
class Frame
class Frame : public Rectangle
{
public:
enum class Anchor
{
Left,
Right,
Top,
Bottom
};
Frame() { }
Frame(const Frame &parent)
: Rectangle(static_cast<Rectangle>(parent))
, Parent(std::shared_ptr<Frame>(&parent)) { }
std::shared_ptr<Frame> Parent;
};
}