memset(&callbacks, 0, sizeof callbacks);
dirty = true;
managed = true;
+ focusable = true;
}
Window::~Window()
return managed;
}
+void Window::set_focusable(bool focusable)
+{
+ this->focusable = focusable;
+}
+
+bool Window::get_focusable() const
+{
+ return focusable;
+}
+
void Window::set_display_callback(DisplayFuncType func)
{
callbacks.display = func;
}
}
+Window **Window::get_children()
+{
+ if(children.empty()) {
+ return 0;
+ }
+ return &children[0];
+}
+
+int Window::get_children_count() const
+{
+ return (int)children.size();
+}
+
const Window *Window::get_parent() const
{
return parent;