diff options
Diffstat (limited to 'src/preview/PreviewView.cpp')
| -rw-r--r-- | src/preview/PreviewView.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/preview/PreviewView.cpp b/src/preview/PreviewView.cpp new file mode 100644 index 0000000..886dd67 --- /dev/null +++ b/src/preview/PreviewView.cpp @@ -0,0 +1,29 @@ +/* + * PreviewView.cpp + * + * Created on: Jan 21, 2012 + * Author: Simon + */ + +#include "PreviewView.h" +#include "interface/Point.h" +#include "interface/Window.h" + +PreviewView::PreviewView(): + ui::Window(ui::Point(-1, -1), ui::Point(200, 200)) +{ + // TODO Auto-generated constructor stub + +} + +void PreviewView::OnDraw() +{ + Graphics * g = ui::Engine::Ref().g; + g->clearrect(Position.X-2, Position.Y-2, Size.X+4, Size.Y+4); + g->drawrect(Position.X, Position.Y, Size.X, Size.Y, 255, 255, 255, 255); +} + +PreviewView::~PreviewView() { + // TODO Auto-generated destructor stub +} + |
