22 #include "win_container.h"
51 if (manager_) manager_->
remove (
this);
64 void win_base::update_position()
91 win_background::update();
96 if(win_event::update())
108 return (focus_ && activate_);
115 if(visible_) on_draw_visible();
122 void win_base::update_align()
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.
void move(s_int16 nx, s_int16 ny)
Move the drawing_area.
void set_visible(const bool b)
Set the visible parameter.
static u_int16 length()
Returns the length of the screen.
virtual bool input_update()
Input Update process .
s_int16 & pad_x()
Return the pad horizontal position of the win_*.
void set_focus(const bool b)
Set the focus parameter.
virtual bool update()
Update process.
#define s_int16
16 bits long signed integer
virtual void resize(u_int16 tl, u_int16 th)
Rezise the win_*.
virtual void move(s_int16 tx, s_int16 ty)
Move the win_*.
s_int16 x() const
Return the relative horizontal position of the win_*.
The window manager takes care of basic GUI functions, such as input focus, window state updates and d...
s_int16 real_y() const
Return the vertical position of the win_*.
virtual void set_trans(const bool b)
Set the transluency parameter.
virtual void set_brightness(const bool b)
Set the transluency parameter.
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.
Declares the win_manager class.
win_base()
Default constructor:
void resize(u_int16 nl, u_int16 nh)
Resize the drawing_area.
s_int16 real_x() const
Return the horizontal position of the win_*.
void set_align(const u_int8 a)
Set alignement of win_*.
#define u_int16
16 bits long unsigned integer
s_int16 & pad_y()
Return the pad vertical position of the win_*.
void remove(win_base *wnd)
Remove a window from the window manager.
s_int16 y() const
Return the relative vertical position of the win_*.
u_int16 length() const
Returns the length of the drawing_area.