41 lines
633 B
C
41 lines
633 B
C
|
/*
|
||
|
GWEN
|
||
|
Copyright (c) 2010 Facepunch Studios
|
||
|
See license in Gwen.h
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
#ifndef GWEN_CONTROLS_RECTANGLE_H
|
||
|
#define GWEN_CONTROLS_RECTANGLE_H
|
||
|
|
||
|
#include "gwen_base.h"
|
||
|
#include "gwen_label.h"
|
||
|
#include "../gwen.h"
|
||
|
#include "../gwen_skin.h"
|
||
|
|
||
|
|
||
|
namespace Gwen
|
||
|
{
|
||
|
namespace Controls
|
||
|
{
|
||
|
|
||
|
class GWEN_EXPORT Rectangle : public Controls::Base
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
GWEN_CONTROL( Rectangle, Controls::Base );
|
||
|
|
||
|
virtual void Render( Skin::Base* skin );
|
||
|
|
||
|
const Gwen::Color& GetColor(){ return m_Color; }
|
||
|
void SetColor( const Gwen::Color& col ){ m_Color = col; }
|
||
|
|
||
|
protected:
|
||
|
|
||
|
Gwen::Color m_Color;
|
||
|
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
#endif
|