Struct lay_rs::renderer::skia_fbo::SkiaFboRenderer
source · pub struct SkiaFboRenderer {
pub gr_context: DirectContext,
pub surface: Surface,
}
Fields§
§gr_context: DirectContext
§surface: Surface
Implementations§
source§impl SkiaFboRenderer
impl SkiaFboRenderer
pub fn new( width: impl Into<i32>, height: impl Into<i32>, sample_count: impl Into<usize>, stencil_bits: impl Into<usize>, fboid: impl Into<u32>, color_type: ColorType, surface_origin: SurfaceOrigin, context: Option<&DirectContext>, ) -> Self
pub fn create( width: impl Into<i32>, height: impl Into<i32>, sample_count: impl Into<usize>, stencil_bits: impl Into<usize>, color_type: ColorType, surface_origin: SurfaceOrigin, fboid: impl Into<u32>, ) -> Cell<Self>
pub fn surface(&self) -> Surface
Trait Implementations§
source§impl Clone for SkiaFboRenderer
impl Clone for SkiaFboRenderer
source§fn clone(&self) -> SkiaFboRenderer
fn clone(&self) -> SkiaFboRenderer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SkiaFboRenderer
impl Debug for SkiaFboRenderer
source§impl DrawScene for SkiaFboRenderer
impl DrawScene for SkiaFboRenderer
Auto Trait Implementations§
impl Freeze for SkiaFboRenderer
impl RefUnwindSafe for SkiaFboRenderer
impl !Send for SkiaFboRenderer
impl !Sync for SkiaFboRenderer
impl Unpin for SkiaFboRenderer
impl UnwindSafe for SkiaFboRenderer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more