Adonthell
0.4
Main Page
Related Pages
Classes
Files
File List
File Members
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
22
class
win_background
23
{
24
public
:
25
26
win_background
();
27
28
win_background
(
win_base
*);
29
30
win_background
(
win_background
&);
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
src
win_background.h
Generated by
1.8.4