14 #include "win_container.h"
16 win_container::win_container()
20 set_layout(NO_LAYOUT);
22 set_space_with_border(SPACE_WITH_BORDER);
24 set_space_with_object(SPACE_WITH_OBJECT);
30 win_container::~win_container()
38 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
39 (*i)->update_position();
50 void win_container::update_position()
52 win_base::update_position();
53 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
54 (*i)->update_position();
57 void win_container::add(
win_base * w)
59 list_wb_.push_back(w);
61 w->set_container(
this);
66 void win_container::remove(
win_base * w)
70 w->set_container(NULL);
75 void win_container::remove_all()
77 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
79 (*i)->set_container(NULL);
84 void win_container::destroy()
86 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
95 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
120 void win_container::set_focus_object(
win_base * f)
122 if(focus_object_) focus_object_->
set_focus(
false);
131 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
132 (*i)->set_brightness(b);
139 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
143 void win_container::set_visible_all(
bool b)
146 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
147 (*i)->set_visible(b);
160 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
174 void win_container::update_layout()
177 u_int16 indice_h=space_with_border_;
183 for(lwb::iterator i=list_wb_.begin();i!=list_wb_.end();i++)
185 (*i)->move((*i)->x(),indice_h);
187 indice_h+=(*i)->height()+space_with_object_;