garage44.eu/jeroen/pinnacle

logclone: git clone https://garage44.eu/jeroen/pinnacle.git

.. /ports/winit-0.30.13/FEATURES.md

raw

Winit Scope

Winit aims to expose an interface that abstracts over window creation and input handling and can be used to create both games and applications. It supports the following main graphical platforms:

Most platforms expose capabilities that cannot be meaningfully transposed onto others. Winit does not aim to support every single feature of every platform, but rather to abstract over the common features available everywhere. In this context, APIs exposed in winit can be split into different "support tiers":

Core features are taken care of by the core Winit maintainers. Platform features are not. When a platform feature is submitted, the submitter is considered the expert in the feature and may be asked to support the feature should it break in the future.

Winit does not directly expose functionality for drawing inside windows or creating native menus, but does commit to providing APIs that higher-level crates can use to implement that functionality.

1.0 and stability

When all core features are implemented to the satisfaction of the Winit maintainers, Winit 1.0 will be released and the library will enter maintenance mode. For the most part, new core features will not be added past this point. New platform features may be accepted and exposed through point releases.

Tier upgrades

Some platform features could, in theory, be exposed across multiple platforms, but have not gone through the implementation work necessary to function on all platforms. When one of these features gets implemented across all platforms, a PR can be opened to upgrade the feature to a core feature. If that gets accepted, the platform-specific functions get deprecated and become permanently exposed through the core, cross-platform API.

Features

Extending this section

If your PR makes notable changes to Winit's features, please update this section as follows:

Core

Windowing

System Information

Input Handling

Platform

Windows

macOS

Unix

iOS

Web

Compatibility Matrix

Legend:

Windowing

FeatureWindowsMacOSLinux x11Linux WaylandAndroidiOSWebRedox OS
Window initialization✔️✔️▢#5✔️▢#33▢#33✔️✔️
Providing pointer to init OpenGL✔️✔️✔️✔️✔️✔️N/A✔️
Providing pointer to init Vulkan✔️✔️✔️✔️✔️❓N/AN/A
Window decorations✔️✔️✔️✔️N/AN/AN/A✔️
Window decorations toggle✔️✔️✔️✔️N/AN/AN/AN/A
Window resizing✔️✔️✔️✔️N/AN/A✔️✔️
Window resize increments✔️✔️✔️❌N/AN/AN/AN/A
Window transparency✔️✔️✔️✔️N/AN/AN/A✔️
Window blur❌❌❌✔️N/AN/AN/A❌
Window maximization✔️✔️✔️✔️N/AN/AN/AN/A
Window maximization toggle✔️✔️✔️✔️N/AN/AN/AN/A
Window minimization✔️✔️✔️✔️N/AN/AN/AN/A
Fullscreen✔️✔️✔️✔️N/A✔️✔️N/A
Fullscreen toggle✔️✔️✔️✔️N/A✔️✔️N/A
Exclusive fullscreen✔️✔️✔️N/A❌✔️N/AN/A
HiDPI support✔️✔️✔️✔️✔️✔️✔️❌
Popup windows❌❌❌❌❌❌N/AN/A

System information

FeatureWindowsMacOSLinux x11Linux WaylandAndroidiOSWebRedox OS
Monitor list✔️✔️✔️✔️✔️✔️N/A❌
Video mode query✔️✔️✔️✔️✔️✔️N/A❌

Input handling

FeatureWindowsMacOSLinux x11Linux WaylandAndroidiOSWebRedox OS
Mouse events✔️▢#63✔️✔️N/AN/A✔️✔️
Mouse set location✔️✔️✔️✔️(when locked)N/AN/AN/AN/A
Cursor locking❌✔️❌✔️N/AN/A✔️❌
Cursor confining✔️❌✔️✔️N/AN/A❌❌
Cursor icon✔️✔️✔️✔️N/AN/A✔️N/A
Cursor image✔️✔️✔️✔️N/AN/A✔️N/A
Cursor hittest✔️✔️✔️✔️N/AN/A❌❌
Touch events✔️❌✔️✔️✔️✔️✔️N/A
Touch pressure✔️❌❌❌❌✔️✔️N/A
Multitouch✔️❌✔️✔️✔️✔️❌N/A
Keyboard events✔️✔️✔️✔️✔️❌✔️✔️
Drag & Drop▢#720▢#720▢#720▢#720N/AN/A❓N/A
Raw Device Events▢#750▢#750▢#750❌❌❌❓N/A
Gamepad/Joystick events❌#804❌❌❌❌❌❓N/A
Device movement events❓❓❓❓❌❌❓N/A
Drag window with cursor✔️✔️✔️✔️N/AN/AN/AN/A
Resize with cursor✔️❌✔️✔️N/AN/AN/AN/A

Pending API Reworks

Changes in the API that have been agreed upon but aren't implemented across all platforms.

FeatureWindowsMacOSLinux x11Linux WaylandAndroidiOSWebRedox OS
New API for HiDPI (#315 #319)✔️✔️✔️✔️✔️✔️❓❓
Event Loop 2.0 (#459)✔️✔️✔️✔️✔️✔️❓✔️
Keyboard Input 2.0 (#753)✔️✔️✔️✔️✔️❌✔️✔️

Completed API Reworks

FeatureWindowsMacOSLinux x11Linux WaylandAndroidiOSWebRedox OS