Luna/wind/Window.h
apio 49d5930912
All checks were successful
continuous-integration/drone/pr Build is passing
wind: Add window titlebars using ui::Font
2023-08-04 16:09:18 +02:00

24 lines
438 B
C

#pragma once
#include <luna/LinkedList.h>
#include <luna/StringView.h>
#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 contents;
ui::Color color;
StringView name;
Window(ui::Rect, ui::Color, StringView);
void focus();
void draw(ui::Canvas& screen);
};
extern LinkedList<Window> g_windows;