Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Screen.h
Go to the documentation of this file.
1 /* Project nGenEx
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: nGenEx.lib
6  FILE: Screen.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  General Screen class - maintains and displays a list of windows
13 */
14 
15 #ifndef Screen_h
16 #define Screen_h
17 
18 #include "Types.h"
19 #include "Color.h"
20 #include "List.h"
21 
22 // +--------------------------------------------------------------------+
23 
24 class Bitmap;
25 class Window;
26 struct Rect;
27 
28 // +--------------------------------------------------------------------+
29 
30 class Screen
31 {
32 public:
33  static const char* TYPENAME() { return "Screen"; }
34 
35  Screen(Video* v);
36  virtual ~Screen();
37 
38  virtual bool SetBackgroundColor(Color c);
39 
40  virtual bool Resize(int w, int h);
41  virtual bool Refresh();
42  virtual bool AddWindow(Window* c);
43  virtual bool DelWindow(Window* c);
44 
45  int Width() const { return width; }
46  int Height() const { return height; }
47 
48  virtual void ClearAllFrames(bool clear_all);
49  virtual void ClearNextFrames(int num_frames);
50 
51  virtual Video* GetVideo() const { return video; }
52 
53 protected:
54  int width;
55  int height;
56  int clear;
57  int closed;
58 
60 
62 };
63 
64 #endif Screen_h
65