WIP Frame
This commit is contained in:
+20
-1
@@ -1,12 +1,31 @@
|
|||||||
#ifndef GUI_Frame_h__
|
#ifndef GUI_Frame_h__
|
||||||
#define GUI_Frame_h__
|
#define GUI_Frame_h__
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
#include "Util/Rectangle.h"
|
||||||
|
|
||||||
namespace GUI
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user