20 #ifndef _WIN_OBJECT_H_
21 #define _WIN_OBJECT_H_
23 #include "win_container.h"
51 void set_auto_refresh(
bool b);
59 image * img_brightness_;
68 img_tmp_ =
new image();
69 img_brightness_ =
new image();
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())
184 T::draw(0,0,NULL,img_tmp_);
188 img_brightness_->brightness(*img_tmp_,WIN_BRIGHTNESS_LEVEL);
189 img_brightness_->set_mask(
true);
192 if(trans_) {img_tmp_->set_alpha(130);img_brightness_->set_alpha(130);}
193 else {img_tmp_->set_alpha(255);img_brightness_->set_alpha(255);}