pub struct Screen;
Expand description
The screen destination
Trait Implementations§
source§impl Canvas for Screen
impl Canvas for Screen
fn id(&self) -> i32
fn draw_texture<T: Texture>( &mut self, texture: &T, source: Rect<f32, Pixels>, destination: Rect<f32, Pixels> )
fn draw_canvas<C: Canvas>( &mut self, canvas: &C, source: Rect<f32, Pixels>, destination: Rect<f32, Pixels> )
fn resize(&mut self, size: Size2D<u16, Pixels>)
fn clear(&mut self)
fn set_global_alpha(&mut self, alpha: f32)
fn set_global_composite_operation(&mut self, operation: CompositeOperation)
fn size(&self) -> Size2D<u16, Pixels>
fn set_fill_style<S>(&mut self, style: S)
fn set_stroke_style<S>(&mut self, style: S)
fn set_font<S>(&mut self, font: S)
fn set_line_width(&mut self, line_width: Length<f32, Pixels>)
fn fill_text<S>( &mut self, text: S, position: Point2D<f32, Pixels>, max_width: Option<Length<f32, Pixels>> )
fn stroke_text<S>( &mut self, text: S, position: Point2D<f32, Pixels>, max_width: Option<Length<f32, Pixels>> )
fn fill_rectangle(&mut self, rectangle: Rect<f32, Pixels>)
fn stroke_rectangle(&mut self, rectangle: Rect<f32, Pixels>)
fn clear_rectangle(&mut self, rectangle: Rect<f32, Pixels>)
source§impl From<&Screen> for OffscreenCanvas
impl From<&Screen> for OffscreenCanvas
source§impl From<Screen> for OffscreenCanvas
impl From<Screen> for OffscreenCanvas
source§impl Ord for Screen
impl Ord for Screen
source§impl PartialEq for Screen
impl PartialEq for Screen
source§impl PartialOrd for Screen
impl PartialOrd for Screen
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Screen
impl Eq for Screen
impl StructuralPartialEq for Screen
Auto Trait Implementations§
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more