1
0
Fork 0
forked from koniifer/ableos
This commit is contained in:
Able 2024-07-21 06:47:25 -05:00
parent 9ec3bb1f99
commit 514dadc667
8 changed files with 14 additions and 28 deletions

View file

@ -0,0 +1,3 @@
# Horizon
Horizon is the windowing system for ableOS.
This is the API library to handle it nicely.

View file

@ -0,0 +1,3 @@
FrameID := struct {
}

View file

@ -1,14 +1,12 @@
create_window := fn(): WindowID {
return WindowID.(1, 2)
}
WindowID := struct { WindowID := struct {
host_id: int, host_id: int,
window_id: int, window_id: int,
} }
/* create_window := fn(): WindowID {
update_ui := fn(window_id: WindowID): bool { return WindowID.(1, 2)
return 1 == 0
} }
*/
update_ui := fn(window_id: WindowID): void {
return
}

View file

@ -1,2 +0,0 @@
# Pinnacle
Pinnacle is the windowing system api for ableOS

View file

@ -1,30 +1,14 @@
stn := @use("../../../libraries/stn/src/lib.hb"); stn := @use("../../../libraries/stn/src/lib.hb");
.{log, string, memory, buffer} := stn .{log, string, memory, buffer} := stn
windo := @use("../../../libraries/windo/src/lib.hb");
.{WindowID, create_window} := windo
service_search := fn(): void { service_search := fn(): void {
a := "\{01}\0" a := "\{01}\0"
@eca(void, 3, a, string.length) @eca(void, 3, 0, a, 2)
return return
} }
main := fn(): int { main := fn(): int {
// Create a buffer service_search()
num := 2
buffer_id := buffer.create()
buffer.send_message(buffer_id)
memory_pages := memory.request_page(3)
buffer.receive_message(buffer_id, memory_pages, 4096 * 3)
log.info("abc\0")
memory.release_page(memory_pages, 3)
window := create_window()
// todo: abstract this out
port_str := "\0\{70}\0"
a := @eca(u8, 3, 3, port_str, 2)
return 0 return 0
} }