33 #include "win_event.h" 34 #include "win_border.h" 35 #include "win_background.h" 185 {set_trans_border(trans_ = b);set_trans_background(b);}
192 {
return brightness_;}
199 {set_brightness_border(brightness_ = b);set_brightness_background(b);}
206 {align_=a;update_align();}
219 {
return can_be_selected_;}
227 {can_be_selected_ = b;}
251 static const u_int8 ALIGN_NONE = 0;
252 static const u_int8 ALIGN_LEFT = 1;
253 static const u_int8 ALIGN_CENTER = 2;
254 static const u_int8 ALIGN_RIGHT = 3;
264 virtual void update_position();
292 bool can_be_selected_;
s_int16 real_y() const
Return the vertical position of the win_*.
virtual void move(s_int16 tx, s_int16 ty)
Move the win_*.
#define u_int16
16 bits long unsigned integer
void set_visible(const bool b)
Set the visible parameter.
s_int16 real_x() const
Return the horizontal position of the win_*.
bool is_focus() const
Test if win_* has focus on.
s_int16 y() const
Return the relative vertical position of the win_*.
#define u_int8
8 bits long unsigned integer
virtual void set_trans(const bool b)
Set the transluency parameter.
s_int16 & pad_y()
Return the pad vertical position of the win_*.
virtual bool update()
Update process.
s_int16 y() const
Returns the vertical position of the drawing_area.
The window manager takes care of basic GUI functions, such as input focus, window state updates and d...
virtual bool input_update()
Input Update process .
virtual void resize(u_int16 tl, u_int16 th)
Rezise the win_*.
Implements "drawing zones" for drawing operations.
#define s_int16
16 bits long signed integer
void set_align(const u_int8 a)
Set alignement of win_*.
void set_focus(const bool b)
Set the focus parameter.
bool is_brightness() const
Test if win_* is in brightness.
void set_can_be_selected(const bool b)
Set the object to be selected A win_obj can be selectable or not when it is inside a win_select...
s_int16 & pad_x()
Return the pad horizontal position of the win_*.
virtual void set_brightness(const bool b)
Set the transluency parameter.
s_int16 x() const
Returns the horizontal position of the drawing_area.
win_base()
Default constructor:
u_int8 align() const
Return alignment of win_*.
bool is_can_be_selected() const
Test if win_* can be selected.
s_int16 x() const
Return the relative horizontal position of the win_*.
Common properties for each win_base's object.
bool is_visible() const
Test if win_* is visible.
void set_activate(const bool b)
Set the activate parameter When a win_* is setup on, the keys queue is cleared.
virtual bool draw()
Draw process.
bool is_activate() const
Test if win_* is activated.
bool is_trans() const
Test if win_* has focus on.