Module winit::platform [−][src]
Expand description
Contains traits with platform-specific methods in them.
Contains the follow OS-specific modules:
android
ios
macos
unix
windows
web
And the following platform-specific module:
run_return
(available onwindows
,unix
,macos
, andandroid
)
However only the module corresponding to the platform you’re compiling to will be available.
Modules
The web target does not automatically insert the canvas element object into the web page, to
allow end users to determine how the page should be laid out. Use the WindowExtWebSys
trait
to retrieve the canvas from the Window. Alternatively, use the WindowBuilderExtWebSys
trait
to provide your own canvas.