Struct freya_engine::prelude::Surface
source · pub struct Surface;
Implementations§
source§impl Surface
impl Surface
pub fn canvas(&self) -> Canvas
pub fn swap_buffers(&self, _: &PossiblyCurrentContext)
pub fn from_backend_render_target( _context: &mut RecordingContext, _backend_render_target: &BackendRenderTarget, _origin: SurfaceOrigin, _color_type: ColorType, _color_space: impl Into<Option<ColorSpace>>, _surface_props: Option<&SurfaceProps> ) -> Option<Self>
Auto Trait Implementations§
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnwindSafe for Surface
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