Files
net/gui/wm.h
2025-12-20 18:49:21 -08:00

33 lines
528 B
C

#pragma once
#include <exec/list.h>
#include <stddef.h>
#include <stdint.h>
#define WF_ACTIVE 1
struct Theme {
uint32_t border_active_color;
uint32_t border_inactive_color;
int border_height;
};
struct Window {
struct Node node;
uint8_t flags;
char *title;
int x;
int y;
int width;
int height;
uint32_t *buffer;
};
struct Screen {
uint32_t *buffer;
int width;
int height;
};
void WmInit(struct Screen *scr);
void WmUpdate(void);
void AddWindow(struct Window *window);