Luna/wind/Window.h
apio 60f9c0e5a3
Some checks failed
continuous-integration/drone/pr Build is failing
wind+gclient: Add SetWindowTitle and support shm buffers
2023-08-14 20:08:05 +02:00

29 lines
516 B
C

#pragma once
#include <luna/LinkedList.h>
#include <luna/String.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 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<Window> g_windows;