Struct screen_13::EventLoopBuilder
source · [−]pub struct EventLoopBuilder { /* private fields */ }Implementations
sourceimpl EventLoopBuilder
impl EventLoopBuilder
sourcepub fn available_monitors(&self) -> impl Iterator<Item = MonitorHandle>
pub fn available_monitors(&self) -> impl Iterator<Item = MonitorHandle>
Returns the list of all the monitors available on the system.
pub fn configure<ConfigureFn>(self, configure_fn: ConfigureFn) -> Self where
ConfigureFn: FnOnce(DriverConfigBuilder) -> DriverConfigBuilder,
pub fn desired_swapchain_image_count(
self,
desired_swapchain_image_count: u32
) -> Self
pub fn sync_display(self, sync_display: bool) -> Self
sourcepub fn fullscreen_mode(self, mode: FullscreenMode) -> Self
pub fn fullscreen_mode(self, mode: FullscreenMode) -> Self
Sets up fullscreen mode using a conveience function. There are
additional options offered by winit which can be accessed using
the with function.
sourcepub fn debug(self, debug: bool) -> Self
pub fn debug(self, debug: bool) -> Self
Enables Vulkan graphics debugging layers.
NOTE: Any valdation warnings or errors will cause the current thread to park itself after
describing the error using the log crate. This makes it easy to attach a debugger and see
what is causing the issue directly.
sourcepub fn primary_monitor(&self) -> Option<MonitorHandle>
pub fn primary_monitor(&self) -> Option<MonitorHandle>
Returns the primary monitor of the system.
Returns None if it can’t identify any monitor as a primary one.
Platform-specific
Wayland: Always returns None.
pub fn ray_tracing(self, ray_tracing: bool) -> Self
sourcepub fn window<WindowFn>(self, window_fn: WindowFn) -> Self where
WindowFn: FnOnce(WindowBuilder) -> WindowBuilder,
pub fn window<WindowFn>(self, window_fn: WindowFn) -> Self where
WindowFn: FnOnce(WindowBuilder) -> WindowBuilder,
Allows deeper customization of the window, if needed.
sourcepub fn window_mode(self) -> Self
pub fn window_mode(self) -> Self
Sets up “windowed” mode, which is the opposite of fullscreen.
sourceimpl EventLoopBuilder
impl EventLoopBuilder
pub fn build(self) -> Result<EventLoop, DriverError>
Trait Implementations
sourceimpl Debug for EventLoopBuilder
impl Debug for EventLoopBuilder
Auto Trait Implementations
impl !RefUnwindSafe for EventLoopBuilder
impl !Send for EventLoopBuilder
impl !Sync for EventLoopBuilder
impl Unpin for EventLoopBuilder
impl !UnwindSafe for EventLoopBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more