pub struct GpuViews { /* private fields */ }Expand description
The GPU views of a surface, in a build without wgpu: they draw nothing.
Implementations§
Source§impl GpuViews
impl GpuViews
Sourcepub fn new(format: PixelFormat) -> Self
pub fn new(format: PixelFormat) -> Self
No views; this build renders none.
Sourcepub fn on_ready(&self, f: impl Fn() + Send + Sync + 'static)
pub fn on_ready(&self, f: impl Fn() + Send + Sync + 'static)
Never called: no render thread runs.
Sourcepub fn set(&mut self, id: NodeId, source: Option<GpuSource>)
pub fn set(&mut self, id: NodeId, source: Option<GpuSource>)
Says once that this build draws no GPU views.
Sourcepub fn set_animated(&mut self, id: NodeId, name: &str, value: AnimatedPropValue)
pub fn set_animated(&mut self, id: NodeId, name: &str, value: AnimatedPropValue)
Ignored.
Ignored.
Sourcepub fn wants_frame(&self) -> bool
pub fn wants_frame(&self) -> bool
Never: nothing renders.
Auto Trait Implementations§
impl Forget for GpuViews
impl Freeze for GpuViews
impl Move for GpuViews
impl RefUnwindSafe for GpuViews
impl Send for GpuViews
impl Sync for GpuViews
impl Unpin for GpuViews
impl UnsafeUnpin for GpuViews
impl UnwindSafe for GpuViews
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