Struct screen_13::EventLoopBuilder
source · [−]pub struct EventLoopBuilder<P> { /* private fields */ }Implementations
sourceimpl<P> EventLoopBuilder<P>
impl<P> EventLoopBuilder<P>
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 and tools such as RenderDoc.
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<P> EventLoopBuilder<P> where
P: SharedPointerKind + 'static,
impl<P> EventLoopBuilder<P> where
P: SharedPointerKind + 'static,
pub fn build(self) -> Result<EventLoop<P>, DriverError>
Trait Implementations
sourceimpl<P: Debug> Debug for EventLoopBuilder<P>
impl<P: Debug> Debug for EventLoopBuilder<P>
Auto Trait Implementations
impl<P> !RefUnwindSafe for EventLoopBuilder<P>
impl<P> !Send for EventLoopBuilder<P>
impl<P> !Sync for EventLoopBuilder<P>
impl<P> Unpin for EventLoopBuilder<P> where
P: Unpin,
impl<P> !UnwindSafe for EventLoopBuilder<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().