From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- nGenEx/Screen.h | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 nGenEx/Screen.h (limited to 'nGenEx/Screen.h') diff --git a/nGenEx/Screen.h b/nGenEx/Screen.h new file mode 100644 index 0000000..39df897 --- /dev/null +++ b/nGenEx/Screen.h @@ -0,0 +1,65 @@ +/* Project nGenEx + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: nGenEx.lib + FILE: Screen.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + General Screen class - maintains and displays a list of windows +*/ + +#ifndef Screen_h +#define Screen_h + +#include "Types.h" +#include "Color.h" +#include "List.h" + +// +--------------------------------------------------------------------+ + +class Bitmap; +class Window; +struct Rect; + +// +--------------------------------------------------------------------+ + +class Screen +{ +public: + static const char* TYPENAME() { return "Screen"; } + + Screen(Video* v); + virtual ~Screen(); + + virtual bool SetBackgroundColor(Color c); + + virtual bool Resize(int w, int h); + virtual bool Refresh(); + virtual bool AddWindow(Window* c); + virtual bool DelWindow(Window* c); + + int Width() const { return width; } + int Height() const { return height; } + + virtual void ClearAllFrames(bool clear_all); + virtual void ClearNextFrames(int num_frames); + + virtual Video* GetVideo() const { return video; } + +protected: + int width; + int height; + int clear; + int closed; + + Video* video; + + List window_list; +}; + +#endif Screen_h + -- cgit v1.1