hxn-window
Native and browser windows, input, monitors, gamepads and the clipboard, with handles for GPU surfaces.
Classes
ClipboardItemsRepresentations of one thing, by MIME type, whichwriteputs on the clipboard together so that a reader takes the richest it understands:text/plainbesidetext/html, orimage/pngbesidetext/plain.GamepadA connection-scoped controller handle; reconnecting invalidates the old handle.MonitorA display.VideoModeA size, depth and refresh rate a monitor can run at, for exclusive fullscreen.WindowWindowAttributesWhat a window opens with; whatever is left unset is the platform's default.
Enums
CursorRangeUTF-8 byte offsets of an IME's cursor in its text.DeviceEventA device's raw input, whichever window has focus.EventWhatWindow.pollandWindow.waitreturn: the next event, orNone.FilePathA path as Unicode when it is; otherwise its exact bytes: a Unix path's, or a Windows path's UTF-16 code units, little-endian.GamepadEventOne application-wide queue, independent of window event queues.ImeKeyKeyEventKeySupplementWhat the key would be without modifiers, and the text it types with all of them, where the platform says.ModifiersThe modifiers in effect, and which side of each is held.MouseButtonMouseScrollDeltaLines and rows of text, or pixels.NativeKeyA platform's code or name for a logical key winit does not name.NativeKeyCodeA platform's code for a physical key winit does not name.OptionalBytesBytes, or none, which is not the same as empty.OptionalFloatOptionalTextText, or none, which is not the same as empty.PhysicalKeyTouchForce
Abstracts
AttentionCursorGrabCursorIconDeviceEventsWhen the platform delivers raw device events (Event.Device).GamepadAxisStick values in [-1,1], with positive Y pointing down.GamepadButtonPositional buttons in the W3C standard gamepad layout; trigger values are analog.ImePurposeWhat an input method is told the text is for.KeyCodeA physical key, by itsKeyboardEvent.codename.KeyLocationModifiersKeyStateMouseElementStateWhether a key or button is down.NamedKeyA named logical key, by itsKeyboardEvent.keyname.ResizeDirectionThe edge or cornerdragResizeWindowresizes from.ScaleSizingHow a window's size follows a change of scale:Logicalkeeps its logical size, as winit suggests;Physicalkeeps its size in pixels.ThemeTouchPhaseWindowLevel