pub struct SwapchainBase<TImage: ISwapchainImage + ?Sized + 'static> { /* private fields */ }Expand description
A helper class for composition-backed swapchains, should not be a public API yet.
A concrete swapchain embeds this type and provides the image factory.
Implementations§
Source§impl<TImage: ISwapchainImage + ?Sized + 'static> SwapchainBase<TImage>
impl<TImage: ISwapchainImage + ?Sized + 'static> SwapchainBase<TImage>
pub fn new() -> Self
Sourcepub fn begin_draw_core(
&self,
factory: &(impl SwapchainImageFactory<TImage> + ?Sized),
size: PixelSize,
) -> (Rc<dyn IDisposable>, Rc<TImage>)
pub fn begin_draw_core( &self, factory: &(impl SwapchainImageFactory<TImage> + ?Sized), size: PixelSize, ) -> (Rc<dyn IDisposable>, Rc<TImage>)
Starts drawing to an image of the given size, which is either reused
or created by factory. Disposing the returned value presents the
image.
Trait Implementations§
Source§impl<TImage: ISwapchainImage + ?Sized + 'static> Default for SwapchainBase<TImage>
impl<TImage: ISwapchainImage + ?Sized + 'static> Default for SwapchainBase<TImage>
Auto Trait Implementations§
impl<TImage> !RefUnwindSafe for SwapchainBase<TImage>
impl<TImage> !Send for SwapchainBase<TImage>
impl<TImage> !Sync for SwapchainBase<TImage>
impl<TImage> !UnwindSafe for SwapchainBase<TImage>
impl<TImage> Freeze for SwapchainBase<TImage>
impl<TImage> Unpin for SwapchainBase<TImage>
impl<TImage> UnsafeUnpin for SwapchainBase<TImage>
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more