Struct g2d::WindowlessHandle
source · pub struct WindowlessHandle { /* private fields */ }
Expand description
A Handle to the G2d API which doesn’t require a window.
Implementations§
source§impl WindowlessHandle
impl WindowlessHandle
sourcepub async fn new() -> Result<Self, Error>
pub async fn new() -> Result<Self, Error>
Attempts to create a WindowlessHandle.
Trait Implementations§
source§impl Debug for WindowlessHandle
impl Debug for WindowlessHandle
source§impl Handle for WindowlessHandle
impl Handle for WindowlessHandle
source§fn wgpu_device(&self) -> &Device
fn wgpu_device(&self) -> &Device
The
wgpu::Device
this Handle uses.source§fn wgpu_queue(&self) -> &Queue
fn wgpu_queue(&self) -> &Queue
The
wgpu::Queue
this Handle uses.source§fn make_blank_texture(&self, size: Dimension) -> OwnedTexture<'_, Self>
fn make_blank_texture(&self, size: Dimension) -> OwnedTexture<'_, Self>
source§fn make_texture(
&self,
size: Dimension,
data: &[u8]
) -> Result<OwnedTexture<'_, Self>, Error>
fn make_texture( &self, size: Dimension, data: &[u8] ) -> Result<OwnedTexture<'_, Self>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for WindowlessHandle
impl Send for WindowlessHandle
impl Sync for WindowlessHandle
impl Unpin for WindowlessHandle
impl !UnwindSafe for WindowlessHandle
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