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);}
bool update()
Update process.
u_int16 length() const
Returns the length of the drawing_area.
void set_brightness(bool b)
Set the transluency parameter.
Image manipulation class.
s_int16 real_y() const
Return the vertical position of the win_*.
virtual void set_trans(const bool b)
Set the transluency parameter.
virtual bool update()
Update process.
virtual bool input_update()
Input Update process .
virtual void resize(u_int16 tl, u_int16 th)
Rezise the win_*.
s_int16 real_x() const
Return the horizontal position of the win_*.
virtual void set_brightness(const bool b)
Set the transluency parameter.
bool input_update()
Input Update process .
void set_trans(bool b)
Set the transluency parameter.
static u_int32 trans_col()
Returns the translucent color in screen's depth format.
Common properties for each win_base's object.
u_int16 height() const
Returns the height of the drawing_area.
virtual bool draw()
Draw process.