#pragma once #include #include #include #include #include struct Window : public LinkedListNode { ui::Rect surface; ui::Rect titlebar; ui::Rect close_button; ui::Rect contents; ui::Color color; String name; static int titlebar_height(); Window(ui::Rect, ui::Color, String&&); void focus(); void draw(ui::Canvas& screen); }; extern LinkedList g_windows;