#pragma once #include #include #include #include #include struct Window : public LinkedListNode { ui::Rect surface; ui::Rect titlebar; ui::Rect close_button; ui::Rect contents; u32* pixels; String name; bool dirty { false }; static int titlebar_height(); Window(ui::Rect, String&&); ~Window(); void focus(); void draw(ui::Canvas& screen); }; extern LinkedList g_windows;