Adonthell  0.4
win_background.h
1 /*
2  (C) Copyright 2000 Joel Vennin
3  Part of the Adonthell Project <http://adonthell.nongnu.org>
4 
5  Adonthell is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  Adonthell is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with Adonthell. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef WIN_BACKGROUND_H_
20 #define WIN_BACKGROUND_H_
21 
22 class win_theme;
23 class win_base;
24 
25 #include "image.h"
26 #include "win_types.h"
27 
29 {
30  public:
31 
33 
35 
37 
38  win_background(char * rep);
39 
40  ~win_background();
41 
42  void load(char *);
43 
44  void update();
45 
46  void destroy();
47 
48  void draw(drawing_area * da =NULL);
49 
50  void set_visible_background(bool b){visible_=b;}
51 
52  void set_background(win_background &);
53 
54  void set_background(win_theme & wt);
55 
56  void set_brightness_background(bool b);
57 
58  void set_trans_background(bool b);//{trans_=b;}
59 
60  private:
61  win_background & operator=(win_background & wb);
62 
63  void refresh();
64 
65  void init();
66 
67  image * background_template_;
68 
69  image * background_;
70 
71  image * background_brightness_;
72 
73  image * background_draw_;
74 
75  win_base * wb_;
76 
77  bool visible_;
78 
79  bool brightness_;
80 
81  bool trans_;
82 };
83 
84 
85 
86 #endif
win_base
Common properties for each win_base's object.
Definition: win_base.h:51
win_background
Definition: win_background.h:28
image.h
Declares the image class.
image
Image manipulation class.
Definition: image.h:45
drawing_area
Implements "drawing zones" for drawing operations.
Definition: drawing_area.h:54
win_theme
Definition: win_theme.h:24