1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/programs/sunset_client/src/main.hb

12 lines
367 B
Plaintext
Raw Normal View History

2024-11-10 12:57:48 -06:00
.{log, string} := @use("../../../libraries/stn/src/lib.hb")
sunset := @use("../../../libraries/sunset_proto/src/lib.hb")
main := fn(): void {
2024-11-10 19:03:01 -06:00
window := sunset.client.new(.(.(100, 100), .(100, 100), "Hello, World!\0"))
2024-11-10 12:57:48 -06:00
if window == null {
2024-11-10 19:03:01 -06:00
log.error("client: window was null\0")
2024-11-10 12:57:48 -06:00
return
}
2024-11-10 19:03:01 -06:00
log.info("client: window title:\0")
log.info(window.data.props.title)
2024-11-10 12:57:48 -06:00
}