pub fn new_user_event() -> EventLoop<T> {
        EventLoop {
            event_loop: platform_impl::EventLoop::new(),
            _marker: ::std::marker::PhantomData,
        }
    }
/// Builds a new event loop.
///
/// Usage will result in display backend initialisation, this can be controlled on linux
/// using an environment variable `WINIT_UNIX_BACKEND`. Legal values are `x11` and `wayland`.
/// If it is not set, winit will try to connect to a wayland connection, and if it fails will
/// fallback on x11. If this variable is set with any other value, winit will panic.
///
/// ## Platform-specific
///
/// - **iOS:** Can only be called on the main thread.
Builds a new event loop.
Usage will result in display backend initialisation, this can be controlled on linux
using an environment variable `WINIT_UNIX_BACKEND`. Legal values are `x11` and `wayland`.
If it is not set, winit will try to connect to a wayland connection, and if it fails will
fallback on x11. If this variable is set with any other value, winit will panic.
Builds a new event loop . Usage will result in display backend initialisation this can be controlled on linux using an environment variable ` WINIT_UNIX_BACKEND ` . Legal values are ` x11 ` and ` wayland ` . If it is not set winit will try to connect to a wayland connection and if it fails will fallback on x11 . If this variable is set with any other value winit will panic .
pub fn new_user_event() -> EventLoop<T> {
        EventLoop {
            event_loop: platform_impl::EventLoop::new(),
            _marker: ::std::marker::PhantomData,
        }
    }
pub fn new_user_event ( ) -> EventLoop < T > { EventLoop { event_loop : platform_impl :: EventLoop :: new ( ) , _marker : :: std :: marker :: PhantomData , } }
Builds a new event loop.
Builds a new event loop .
platform-specific
Can only be called on the main thread.
Can only be called on the main thread .