94 lines
1.7 KiB
Lua
94 lines
1.7 KiB
Lua
---@enum WindowMode
|
|
WindowMode = {
|
|
WNDOWED = "windowed",
|
|
BORDERLESS_FULLSCREEN = "borderless_fullscreen",
|
|
SIZED_FULLSCREEN = "sized_fullscreen",
|
|
FULLSCREEN = "fullscreen",
|
|
}
|
|
|
|
---@enum CursorGrabMode
|
|
CursorGrabMode = {
|
|
NONE = "none",
|
|
CONFINED = "confined",
|
|
LOCKED = "locked",
|
|
}
|
|
|
|
---@enum WindowTheme
|
|
WindowTheme = {
|
|
LIGHT = "light",
|
|
DARK = "dark",
|
|
}
|
|
|
|
---@enum WindowLevel
|
|
WindowLevel = {
|
|
ALWAYS_ON_BOTTOM = "always_on_bottom",
|
|
NORMAL = "normal",
|
|
ALWAYS_ON_TOP = "always_on_top",
|
|
}
|
|
|
|
---@enum HandleState
|
|
HandleState = {
|
|
LOADING = "loading",
|
|
READY = "ready",
|
|
ERROR = "error",
|
|
}
|
|
|
|
---@enum ActionKind
|
|
ActionKind = {
|
|
BUTTON = "button",
|
|
AXIS = "axis",
|
|
}
|
|
|
|
---@enum ActionState
|
|
ActionState = {
|
|
IDLE = "idle",
|
|
PRESSED = "pressed",
|
|
JUST_PRESSED = "just_pressed",
|
|
JUST_RELEASED = "just_released",
|
|
AXIS = "axis",
|
|
OTHER = "other",
|
|
}
|
|
|
|
---@enum FilterMode
|
|
FilterMode = {
|
|
NEAREST = "nearest",
|
|
LINEAR = "linear",
|
|
}
|
|
|
|
---@enum WrappingMode
|
|
WrappingMode = {
|
|
CLAMP_TO_EDGE = "clamp_to_edge",
|
|
MIRRORED_REPEAT = "mirrored_repeat",
|
|
REPEAT = "repeat",
|
|
}
|
|
|
|
---@enum CameraProjectionMode
|
|
CameraProjectionMode = {
|
|
PERSPECTIVE = "perspective",
|
|
ORTHOGRAPHIC = "orthographic",
|
|
}
|
|
|
|
---@enum DeviceEventKind
|
|
DeviceEventKind = {
|
|
ADDED = "added",
|
|
REMOVED = "removed",
|
|
MOUSE_MOTION = "mouse_motion",
|
|
MOUSE_WHEEL = "mouse_wheel",
|
|
MOTION = "motion",
|
|
BUTTON = "button",
|
|
KEY = "key",
|
|
}
|
|
|
|
---@enum NativeKeyCodeKind
|
|
NativeKeyCodeKind = {
|
|
ANDROID = "android",
|
|
MACOS = "macos",
|
|
WINDOWS = "windows",
|
|
XKB = "xkb",
|
|
}
|
|
|
|
---@enum ElementState
|
|
ElementState = {
|
|
PRESSED = "pressed",
|
|
RELEASED = "released",
|
|
} |