[][src]Struct bevy::prelude::Window

pub struct Window { /* fields omitted */ }

Implementations

impl Window[src]

pub fn new(id: WindowId, window_descriptor: &WindowDescriptor) -> Window[src]

pub fn id(&self) -> WindowId[src]

pub fn width(&self) -> u32[src]

pub fn height(&self) -> u32[src]

pub fn set_resolution(&mut self, width: u32, height: u32)[src]

pub fn title(&self) -> &str[src]

pub fn set_title(&mut self, title: String)[src]

pub fn vsync(&self) -> bool[src]

pub fn set_vsync(&mut self, vsync: bool)[src]

pub fn resizable(&self) -> bool[src]

pub fn set_resizable(&mut self, resizable: bool)[src]

pub fn decorations(&self) -> bool[src]

pub fn set_decorations(&mut self, decorations: bool)[src]

pub fn cursor_locked(&self) -> bool[src]

pub fn set_cursor_lock_mode(&mut self, lock_mode: bool)[src]

pub fn cursor_visible(&self) -> bool[src]

pub fn set_cursor_visibility(&mut self, visibile_mode: bool)[src]

pub fn mode(&self) -> WindowMode[src]

pub fn set_mode(&mut self, mode: WindowMode)[src]

pub fn drain_commands(&mut self) -> impl Iterator<Item = WindowCommand>[src]

Trait Implementations

impl Debug for Window[src]

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]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,