[−][src]Struct arcs::window::Window
A wrapper around the "window" object.
Implementations
impl Window
[src]
pub fn create(world: &mut World) -> Self
[src]
Creates a new Window
entity populated with all default components.
pub fn render_system<'a, R>(
&'a self,
backend: R,
window_size: Size2D<f64, CanvasSpace>
) -> impl System<'a> + 'a where
R: RenderContext + 'a,
[src]
&'a self,
backend: R,
window_size: Size2D<f64, CanvasSpace>
) -> impl System<'a> + 'a where
R: RenderContext + 'a,
Get a System
which will render using a particular RenderContext
.
Note
This snapshots the window's state and styling (e.g. Viewport
and
WindowStyle
) so you shouldn't keep this system around for any length
of time.
impl Window
[src]
Accessors for the various components attached to this Window
.
pub fn viewport<'a>(
&self,
storage: &'a ReadStorage<'a, Viewport>
) -> &'a Viewport
[src]
&self,
storage: &'a ReadStorage<'a, Viewport>
) -> &'a Viewport
pub fn viewport_mut<'a, 'world: 'a>(
&self,
storage: &'a mut WriteStorage<'world, Viewport>
) -> &'a mut Viewport
[src]
&self,
storage: &'a mut WriteStorage<'world, Viewport>
) -> &'a mut Viewport
pub fn default_point_style<'a>(
&self,
storage: &'a ReadStorage<'a, PointStyle>
) -> &'a PointStyle
[src]
&self,
storage: &'a ReadStorage<'a, PointStyle>
) -> &'a PointStyle
Get a reference to the Window
's PointStyle
component.
pub fn default_point_style_mut<'a, 'world: 'a>(
&self,
storage: &'a mut WriteStorage<'world, PointStyle>
) -> &'a mut PointStyle
[src]
&self,
storage: &'a mut WriteStorage<'world, PointStyle>
) -> &'a mut PointStyle
Get a mutable reference to the Window
's PointStyle
component.
pub fn default_line_style<'a>(
&self,
storage: &'a ReadStorage<'a, LineStyle>
) -> &'a LineStyle
[src]
&self,
storage: &'a ReadStorage<'a, LineStyle>
) -> &'a LineStyle
pub fn default_line_style_mut<'a, 'world: 'a>(
&self,
storage: &'a mut WriteStorage<'world, LineStyle>
) -> &'a mut LineStyle
[src]
&self,
storage: &'a mut WriteStorage<'world, LineStyle>
) -> &'a mut LineStyle
pub fn style<'a>(
&self,
storage: &'a ReadStorage<'a, WindowStyle>
) -> &'a WindowStyle
[src]
&self,
storage: &'a ReadStorage<'a, WindowStyle>
) -> &'a WindowStyle
Get a reference to the Window
's WindowStyle
component.
pub fn style_mut<'a, 'world: 'a>(
&self,
storage: &'a mut WriteStorage<'world, WindowStyle>
) -> &'a mut WindowStyle
[src]
&self,
storage: &'a mut WriteStorage<'world, WindowStyle>
) -> &'a mut WindowStyle
Get a mutable reference to the Window
's WindowStyle
component.
Trait Implementations
impl Clone for Window
[src]
impl Debug for Window
[src]
impl PartialEq<Window> for Window
[src]
impl StructuralPartialEq 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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
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> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> RoundFrom<T> for T
[src]
fn round_from(x: T) -> T
[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
[src]
U: RoundFrom<T>,
fn round_into(self) -> U
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,