1
0
Fork 0
forked from AbleOS/ableos
ableos-idl/sysdata/libraries/horizon_api/src/lib.hb

26 lines
499 B
Plaintext
Raw Normal View History

2024-09-13 16:40:05 -05:00
stn := @use("rel:../../stn/src/lib.hb")
.{string, memory, buffer} := stn
2024-07-20 12:54:58 -05:00
WindowID := struct {
host_id: int,
window_id: int,
}
2024-09-13 16:40:05 -05:00
create_window := fn(channel: int): void {
// get the horizon buffer
// request a new window and provide the callback buffer
// wait to recieve a message
windowing_system_buffer := buffer.search("XHorizon\0")
if windowing_system_buffer == 0 {
} else {
msg := "\{01}\0"
msg_length := 2
@eca(void, 3, windowing_system_buffer, msg, msg_length)
}
2024-07-21 06:47:25 -05:00
return
}