pub struct Window {
pub input: Input,
pub renderer: Renderer,
pub factory: Factory,
pub scene: Scene,
pub reset_input: bool,
/* private fields */
}
Expand description
Window
is the core entity of every three-rs
application.
It provides user input,
Factory
and Renderer
.
Fields
input: Input
See Input
.
renderer: Renderer
See Renderer
.
factory: Factory
See Factory
.
scene: Scene
See Scene
.
reset_input: bool
Reset input on each frame? See Input::reset
.
Defaults to true
.
Implementations
sourceimpl Window
impl Window
sourcepub fn builder<T: Into<String>>(title: T) -> Builder
pub fn builder<T: Into<String>>(title: T) -> Builder
Create new Builder
with standard parameters.
sourcepub fn glutin_window(&self) -> &GlWindow
pub fn glutin_window(&self) -> &GlWindow
Returns underlaying glutin::GlWindow
.
sourcepub fn is_fullscreen(&self) -> bool
pub fn is_fullscreen(&self) -> bool
Returns the current full screen mode.
sourcepub fn set_fullscreen(&mut self, fullscreen: bool)
pub fn set_fullscreen(&mut self, fullscreen: bool)
Sets the full screen mode. If the window is already in full screen mode, does nothing.
sourcepub fn toggle_fullscreen(&mut self) -> bool
pub fn toggle_fullscreen(&mut self) -> bool
Toggles the full screen mode. Returns the new actual mode.
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
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.