16 #ifndef _WIN_OBJECT_H_
17 #define _WIN_OBJECT_H_
19 #include "win_container.h"
47 void set_auto_refresh(
bool b);
55 image * img_brightness_;
64 img_tmp_ =
new image();
65 img_tmp_->set_mask(
true);
66 img_tmp_->set_dbl_mode (
false);
68 img_brightness_ =
new image();
69 img_brightness_->set_dbl_mode (
false);
71 set_auto_refresh(
false);
77 if( img_tmp_ !=NULL )
delete img_tmp_ ;
78 if( img_brightness_ != NULL)
delete img_brightness_ ;
82 template<
class T>
bool
87 assign_drawing_area(wb_father_);
89 win_background::draw(
this);
91 if( auto_refresh_ ) refresh();
93 if(brightness_ || trans_)
102 win_border::draw(wb_father_);
104 detach_drawing_area();
112 template<
class T>
bool
125 template<
class T>
bool
140 template<
class T>
void
149 template<
class T>
void
156 template<
class T>
void
162 img_tmp_->resize(T::length(), T::height());
168 template<
class T>
void
176 template<
class T>
void
180 if(T::length() && T::height())
186 T::draw(0,0,NULL,img_tmp_);
190 img_brightness_->brightness(*img_tmp_,WIN_BRIGHTNESS_LEVEL);
191 img_brightness_->set_mask(
true);
194 if(trans_) {img_tmp_->set_alpha(130);img_brightness_->set_alpha(130);}
195 else {img_tmp_->set_alpha(255);img_brightness_->set_alpha(255);}