- state&=~FOCUS;
-}
-
-void Widget::update_style()
-{
- string sname=get_class();
- if(!style_name.empty())
- {
- sname+='-';
- sname+=style_name;
- }
- style=res.get<Style>(sname);
- on_style_change();
-}
-
-void Widget::set_parent(Container *p)
-{
- if(parent && p)
- throw InvalidState("Widget is already in a Container");
- parent=p;
-
- on_reparent();
-}
-
-void Widget::set_parent(Widget &w, Container *p)
-{
- w.set_parent(p);