Luna/gui/wind/Window.h

31 lines
533 B
C
Raw Permalink Normal View History

2023-08-03 15:38:49 +00:00
#pragma once
#include <luna/LinkedList.h>
#include <luna/RefString.h>
2023-08-03 15:38:49 +00:00
#include <ui/Canvas.h>
#include <ui/Color.h>
#include <ui/Rect.h>
#include <ui/ipc/Server.h>
2023-08-03 15:38:49 +00:00
struct Client;
struct Layer;
2023-08-03 15:38:49 +00:00
struct Window : public LinkedListNode<Window>
{
ui::Rect surface;
ui::Rect titlebar;
u32* pixels;
RefString name;
RefString shm_path;
bool dirty { false };
Client* client;
Layer* layer;
int id;
2023-08-03 15:38:49 +00:00
Window(ui::Rect, RefString&&);
~Window();
2023-08-03 15:38:49 +00:00
void focus();
void draw(ui::Canvas& screen);
};