parent->child_hidden(*this);
}
+void Widget::set_focus()
+{
+ if(!parent)
+ throw InvalidState("No parent");
+ if(!visible)
+ throw InvalidState("Can't set focus on invisible widget");
+
+ parent->grab_focus(*this);
+}
+
void Widget::render() const
{
if(!style)