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);}
u_int16 height() const
Returns the height of the drawing_area.
s_int16 real_y() const
Return the vertical position of the win_*.
bool update()
Update process.
s_int16 real_x() const
Return the horizontal position of the win_*.
void set_brightness(bool b)
Set the transluency parameter.
Image manipulation class.
virtual void set_trans(const bool b)
Set the transluency parameter.
virtual bool update()
Update process.
u_int16 length() const
Returns the length of the drawing_area.
virtual bool input_update()
Input Update process
virtual void resize(u_int16 tl, u_int16 th)
Rezise 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.
virtual bool draw()
Draw process.