ableos/sysdata/libraries/sunset_proto/src/lib.hb

30 lines
527 B
Plaintext
Raw Normal View History

2024-11-10 12:57:48 -06:00
.{math: .{Vec2}} := @use("../../stn/src/lib.hb");
.{Surface} := @use("../../render/src/lib.hb")
$BUFFER := "sunset\0"
client := @use("./client.hb")
server := @use("./server.hb")
message := @use("./message.hb")
2024-11-10 19:03:01 -06:00
MessageHeader := packed struct {
kind: uint,
data: uint,
2024-11-10 12:57:48 -06:00
}
WindowProps := struct {
position: Vec2(uint),
dimensions: Vec2(uint),
2024-11-10 19:03:01 -06:00
// replace with owned string type later
2024-11-10 12:57:48 -06:00
title: ^u8,
}
2024-11-10 19:03:01 -06:00
WindowData := struct {
2024-11-10 12:57:48 -06:00
props: WindowProps,
2024-11-10 19:03:01 -06:00
buffer_id: uint,
2024-11-10 12:57:48 -06:00
}
Window := struct {
2024-11-10 19:03:01 -06:00
data: WindowData,
2024-11-10 12:57:48 -06:00
surface: Surface,
}