From dfd94254731eb00528702569520e1d54dcf71ed9 Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Wed, 23 Apr 2014 02:19:17 +0200 Subject: [PATCH] WIP Frame --- src/GUI/Frame.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/GUI/Frame.h b/src/GUI/Frame.h index 5415d64..f77d29f 100644 --- a/src/GUI/Frame.h +++ b/src/GUI/Frame.h @@ -1,12 +1,31 @@ #ifndef GUI_Frame_h__ #define GUI_Frame_h__ +#include + +#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(parent)) + , Parent(std::shared_ptr(&parent)) { } + + std::shared_ptr Parent; }; }