00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef WIN_BACKGROUND_H_
00014 #define WIN_BACKGROUND_H_
00015
00016 class win_theme;
00017 class win_base;
00018
00019 #include "image.h"
00020 #include "win_types.h"
00021
00022 class win_background
00023 {
00024 public:
00025
00026 win_background();
00027
00028 win_background(win_base *);
00029
00030 win_background(win_background &);
00031
00032 win_background(char * rep);
00033
00034 ~win_background();
00035
00036 void load(char *);
00037
00038 void update();
00039
00040 void destroy();
00041
00042 void draw(drawing_area * da =NULL);
00043
00044 void set_visible_background(bool b){visible_=b;}
00045
00046 void set_background(win_background &);
00047
00048 void set_background(win_theme & wt);
00049
00050 void set_brightness_background(bool b);
00051
00052 void set_trans_background(bool b);
00053
00054 private:
00055 win_background & operator=(win_background & wb);
00056
00057 void refresh();
00058
00059 void init();
00060
00061 image * background_template_;
00062
00063 image * background_;
00064
00065 image * background_brightness_;
00066
00067 image * background_draw_;
00068
00069 win_base * wb_;
00070
00071 bool visible_;
00072
00073 bool brightness_;
00074
00075 bool trans_;
00076 };
00077
00078
00079
00080 #endif