Module azul_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 on windows, unix, macos, and android)

However only the module corresponding to the platform you’re compiling to will be available.

Modules

web

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 WindowExtStdweb or WindowExtWebSys traits (depending on your web backend) to retrieve the canvas from the Window. Alternatively, use the WindowBuilderExtStdweb or WindowBuilderExtWebSys to provide your own canvas.