Adonthell  0.4
win_background.h
1 /*
2  (C) Copyright 2000 Joel Vennin
3  Part of the Adonthell Project http://adonthell.linuxgames.com
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License.
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY.
9 
10  See the COPYING file for more details
11 */
12 
13 #ifndef WIN_BACKGROUND_H_
14 #define WIN_BACKGROUND_H_
15 
16 class win_theme;
17 class win_base;
18 
19 #include "image.h"
20 #include "win_types.h"
21 
23 {
24  public:
25 
27 
29 
31 
32  win_background(char * rep);
33 
34  ~win_background();
35 
36  void load(char *);
37 
38  void update();
39 
40  void destroy();
41 
42  void draw(drawing_area * da =NULL);
43 
44  void set_visible_background(bool b){visible_=b;}
45 
46  void set_background(win_background &);
47 
48  void set_background(win_theme & wt);
49 
50  void set_brightness_background(bool b);
51 
52  void set_trans_background(bool b);//{trans_=b;}
53 
54  private:
55  win_background & operator=(win_background & wb);
56 
57  void refresh();
58 
59  void init();
60 
61  image * background_template_;
62 
63  image * background_;
64 
65  image * background_brightness_;
66 
67  image * background_draw_;
68 
69  win_base * wb_;
70 
71  bool visible_;
72 
73  bool brightness_;
74 
75  bool trans_;
76 };
77 
78 
79 
80 #endif
Image manipulation class.
Definition: image.h:41
Declares the image class.
Implements "drawing zones" for drawing operations.
Definition: drawing_area.h:50
Common properties for each win_base's object.
Definition: win_base.h:47