pub struct WinitWindow { /* private fields */ }
Trait Implementations
sourceimpl BasaltWindow for WinitWindow
impl BasaltWindow for WinitWindow
sourcefn id(&self) -> BstWindowID
fn id(&self) -> BstWindowID
The window id of this window.
sourcefn attach_input_hook(&self, id: InputHookID)
fn attach_input_hook(&self, id: InputHookID)
Attach an input hook to this window.
sourcefn capture_cursor(&self)
fn capture_cursor(&self)
Hides and captures cursor.
sourcefn release_cursor(&self)
fn release_cursor(&self)
Shows and releases cursor.
sourcefn cursor_captured(&self) -> bool
fn cursor_captured(&self) -> bool
Checks if cursor is currently captured.
sourcefn primary_monitor(&self) -> Option<Monitor>
fn primary_monitor(&self) -> Option<Monitor>
Return the primary monitor if the implementation is able to determine it.
sourcefn current_monitor(&self) -> Option<Monitor>
fn current_monitor(&self) -> Option<Monitor>
Return the current monitor if the implementation is able to determine it.
sourcefn enable_fullscreen(
&self,
behavior: FullScreenBehavior
) -> Result<(), FullScreenError>
fn enable_fullscreen(
&self,
behavior: FullScreenBehavior
) -> Result<(), FullScreenError>
Enable fullscreen with the provided behavior.
sourcefn disable_fullscreen(&self)
fn disable_fullscreen(&self)
Disable fullscreen. Read more
sourcefn is_fullscreen(&self) -> bool
fn is_fullscreen(&self) -> bool
Check if the window is fullscreen.
sourcefn toggle_fullscreen(&self)
fn toggle_fullscreen(&self)
Toggle fullscreen mode. Uses
FullScreenBehavior::Auto
. Read moresourcefn request_resize(&self, width: u32, height: u32)
fn request_resize(&self, width: u32, height: u32)
Request the monitor to resize to the given dimensions.
sourceunsafe fn attach_basalt(&self, basalt: Arc<Basalt>)
unsafe fn attach_basalt(&self, basalt: Arc<Basalt>)
Safety Read more
sourcefn inner_dimensions(&self) -> [u32; 2]
fn inner_dimensions(&self) -> [u32; 2]
Return the dimensions of the client area of this window.
sourcefn window_type(&self) -> WindowType
fn window_type(&self) -> WindowType
Return the
WindowType
of this window.sourcefn scale_factor(&self) -> f32
fn scale_factor(&self) -> f32
DPI scaling used on this window.
sourcefn win32_monitor(&self) -> Option<Win32Monitor>
fn win32_monitor(&self) -> Option<Win32Monitor>
Return the
Win32Monitor
used if present.Auto Trait Implementations
impl !RefUnwindSafe for WinitWindow
impl Send for WinitWindow
impl Sync for WinitWindow
impl Unpin for WinitWindow
impl !UnwindSafe for WinitWindow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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