Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ImgView.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: ImgView.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Bitmap "Billboard" View class
13 */
14 
15 #ifndef ImgView_h
16 #define ImgView_h
17 
18 #include "Types.h"
19 #include "View.h"
20 
21 // +--------------------------------------------------------------------+
22 
23 class Bitmap;
24 
25 // +--------------------------------------------------------------------+
26 
27 class ImgView : public View
28 {
29 public:
30  static const char* TYPENAME() { return "ImgView"; }
31 
32  ImgView(Window* c, Bitmap* bmp);
33  virtual ~ImgView();
34 
35  // Operations:
36  virtual void Refresh();
37 
38  virtual Bitmap* GetPicture() const { return img; }
39  virtual void SetPicture(Bitmap* bmp);
40  virtual int GetBlend() const { return blend; }
41  virtual void SetBlend(int b) { blend = b; }
42 
43 protected:
46  int width, height;
47  int blend;
48 };
49 
50 #endif ImgView_h
51