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 89 win_background::draw(
this);
91 if( auto_refresh_ ) refresh();
93 if(brightness_ || trans_)
102 win_border::draw(wb_father_);
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);
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.
void resize(u_int16 l, u_int16 h)
Resize this image.
void detach_drawing_area()
Detach (if needed) the drawing_area which was attached to this one.
s_int16 real_x() const
Return the horizontal position of the win_*.
void set_brightness(bool b)
Set the transluency parameter.
void fillrect(s_int16 x, s_int16 y, u_int16 l, u_int16 h, u_int32 col, drawing_area *da_opt=NULL)
Fills an area of the surface with a given color.
Image manipulation class.
virtual void set_trans(const bool b)
Set the transluency parameter.
void assign_drawing_area(const drawing_area *da)
Assign a drawing_area to this drawing_area.
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_*.
void draw(s_int16 x, s_int16 y, const drawing_area *da_opt=NULL, surface *target=NULL) const
Draw the surface.
void set_alpha(u_int8 a, const bool &alpha_channel=false)
Sets the alpha value of the surface.
virtual void set_brightness(const bool b)
Set the transluency parameter.
bool input_update()
Input Update process .
void brightness(const surface &src, u_int8 cont, bool proceed_mask=false)
Applies a "brightness" to a surface.
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.
void set_mask(bool m)
Sets the mask parameter of the surface.
virtual bool draw()
Draw process.