[−][src]Struct blinds::Window
The Window for your blinds application
Implementations
impl Window
[src]
pub fn set_cursor_icon(&self, icon: Option<CursorIcon>)
[src]
Set the cursor icon to some value, or set it to invisible (None)
pub fn size(&self) -> Vector2<f32>
[src]
Get the size of the window in logical units
On a high-dpi display, this doesn't correspond to physical pixels and must be multiplied by
scale
when passing sizes to functions like glViewport
.
pub fn scale_factor(&self) -> f32
[src]
The DPI scale factor of the window
For a good example of DPI scale factors, see the winit docs on the subject
pub fn set_size(&self, size: Vector2<f32>)
[src]
Set the size of the inside of the window in logical units
pub fn set_title(&self, title: &str)
[src]
Set the title of the window or browser tab
pub fn set_fullscreen(&self, fullscreen: bool)
[src]
Set if the window should be fullscreen or not
On desktop, it will instantly become fullscreen (borderless windowed on Windows and Linux, and fullscreen on macOS). On web, it will become fullscreen after the next user interaction, due to browser API restrictions.
Auto Trait Implementations
impl !RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,