pub struct Surface;
Implementations§
Source§impl Surface
impl Surface
pub fn canvas(&mut self) -> &Canvas
pub fn image_snapshot(&mut self) -> Image
pub fn direct_context(&self) -> Option<DirectContext>
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>
pub fn draw( &self, canvas: &Canvas, offset: impl Into<Point>, sampling: impl Into<SamplingOptions>, paint: Option<&Paint>, )
pub fn new_surface_with_dimensions( &mut self, dim: impl Into<ISize>, ) -> Option<Self>
Auto Trait Implementations§
impl Freeze for Surface
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