Frame And Rectangle work

This commit is contained in:
Jimmy
2014-03-13 19:48:40 +01:00
parent c952953787
commit f3ff391984
10 changed files with 214 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
/*#ifndef Frame_h__
#define Frame_h__
#include <map>
#include "Renderer.h"
#include "Rectangle.h"
#include "GUIManager.h"
#include "Texture.h"
#include "Color.h"
//#include "Camera.h"
namespace GUI
{
class Frame
{
public:
Frame();
GUIManager Manager;
std::string Name;
int GetWidth();
int GetHeight();
int GetX();
int GetY();
void SetWidth(int wid);
void SetHeight(int hei);
void SetX( int xcord);
void SetY(int ycord);
Rectangle *rectangle;
Rectangle AbsouluteRectangle();
Texture texture;
Color color;
bool _Visible;
bool Visible();
int layer;
int layerSum;
int LayerSum();
int UID();
Frame *Parent;
std::map<std::string, void*> Properties = new std::map<std::string, void*>();
void AddChild(Frame childFrame);
void RemoveChild(Frame childFrame);
void Update(double dt);
void Draw();
protected:
virtual void Initialize();
};
}
#endif*/