Luna/wind/Window.h

25 lines
465 B
C
Raw Normal View History

2023-08-03 15:38:49 +00:00
#pragma once
#include <luna/LinkedList.h>
#include <luna/StringView.h>
2023-08-03 15:38:49 +00:00
#include <ui/Canvas.h>
#include <ui/Color.h>
#include <ui/Rect.h>
struct Window : public LinkedListNode<Window>
{
ui::Rect surface;
ui::Rect titlebar;
ui::Rect close_button;
ui::Rect contents;
2023-08-03 15:38:49 +00:00
ui::Color color;
StringView name;
2023-08-03 15:38:49 +00:00
Window(ui::Rect, ui::Color, StringView);
2023-08-03 15:38:49 +00:00
void focus();
void draw(ui::Canvas& screen);
};
extern LinkedList<Window> g_windows;