[−][src]Struct crow::WindowSurface
A handle which can be used to draw to the window.
Created by calling Context::window_surface()
.
Trait Implementations
impl Debug for WindowSurface
[src]
impl DrawTarget for WindowSurface
[src]
fn receive_draw(
&mut self,
ctx: &mut Context,
texture: &Texture,
position: (i32, i32),
config: &DrawConfig
) -> Result<(), ErrDontCare>
[src]
&mut self,
ctx: &mut Context,
texture: &Texture,
position: (i32, i32),
config: &DrawConfig
) -> Result<(), ErrDontCare>
Draws texture
to the window, to finish the frame, call Context::finalize_frame
.
fn receive_clear_color(
&mut self,
ctx: &mut Context,
color: (f32, f32, f32, f32)
) -> Result<(), ErrDontCare>
[src]
&mut self,
ctx: &mut Context,
color: (f32, f32, f32, f32)
) -> Result<(), ErrDontCare>
fn receive_line(
&mut self,
ctx: &mut Context,
from: (i32, i32),
to: (i32, i32),
color: (f32, f32, f32, f32)
) -> Result<(), ErrDontCare>
[src]
&mut self,
ctx: &mut Context,
from: (i32, i32),
to: (i32, i32),
color: (f32, f32, f32, f32)
) -> Result<(), ErrDontCare>
fn receive_rectangle(
&mut self,
ctx: &mut Context,
lower_left: (i32, i32),
upper_right: (i32, i32),
color: (f32, f32, f32, f32)
) -> Result<(), ErrDontCare>
[src]
&mut self,
ctx: &mut Context,
lower_left: (i32, i32),
upper_right: (i32, i32),
color: (f32, f32, f32, f32)
) -> Result<(), ErrDontCare>
Auto Trait Implementations
impl RefUnwindSafe for WindowSurface
impl !Send for WindowSurface
impl !Sync for WindowSurface
impl Unpin for WindowSurface
impl UnwindSafe for WindowSurface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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>,