Thin pure-MoonBit native windowing (Xlib on Linux, zero GLFW), input events, and Vulkan WSI surface helper for Tycho
pub(all) enum Event {
CloseRequested
Resized(Int, Int)
KeyDown(KeyCode, Modifiers)
KeyUp(KeyCode, Modifiers)
MouseMove(Int, Int)
MouseDown(MouseButton, Int, Int)
MouseUp(MouseButton, Int, Int)
MouseScroll(Int, Int)
FocusChanged(Bool)
TextInput(String)
ImePreedit(String)
ImePreeditClear
ImeCommit(String)
ImeCancel
} derive(Eq, Debug)pub(all) enum KeyCode {
Escape
Return
Tab
Backspace
Space
Left
Up
Right
Down
Home
End
PageUp
PageDown
Insert
Delete
Num0
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
LShift
RShift
LCtrl
RCtrl
LAlt
RAlt
Unknown(Int)
} derive(Eq, Debug)pub struct Window {
// private fields
}pub(all) struct WindowDesc {
width : Int
height : Int
title : String
}fn monitor_handle(win : UInt64) -> UInt64fn native_display(win : UInt64) -> UInt64fn native_handle(win : UInt64) -> UInt64Install
Download zipThin pure-MoonBit native windowing (Xlib on Linux, zero GLFW), input events, and Vulkan WSI surface helper for Tycho