[−][src]Struct bevy::prelude::Window
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
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> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,