Struct windows::Win32::Graphics::Direct3D9::IDirect3DSurface9
pub struct IDirect3DSurface9(/* private fields */);
Implementations§
§impl IDirect3DSurface9
impl IDirect3DSurface9
pub unsafe fn GetDevice(&self) -> Result<IDirect3DDevice9>
pub unsafe fn SetPrivateData( &self, refguid: *const GUID, pdata: *const c_void, sizeofdata: u32, flags: u32 ) -> Result<()>
pub unsafe fn GetPrivateData( &self, refguid: *const GUID, pdata: *mut c_void, psizeofdata: *mut u32 ) -> Result<()>
pub unsafe fn FreePrivateData(&self, refguid: *const GUID) -> Result<()>
pub unsafe fn SetPriority(&self, prioritynew: u32) -> u32
pub unsafe fn GetPriority(&self) -> u32
pub unsafe fn PreLoad(&self)
pub unsafe fn GetType(&self) -> D3DRESOURCETYPE
pub unsafe fn GetContainer( &self, riid: *const GUID, ppcontainer: *mut *mut c_void ) -> Result<()>
pub unsafe fn GetDesc(&self, pdesc: *mut D3DSURFACE_DESC) -> Result<()>
pub unsafe fn LockRect( &self, plockedrect: *mut D3DLOCKED_RECT, prect: *const RECT, flags: u32 ) -> Result<()>
pub unsafe fn UnlockRect(&self) -> Result<()>
pub unsafe fn GetDC(&self, phdc: *mut HDC) -> Result<()>
pub unsafe fn ReleaseDC<P0>(&self, hdc: P0) -> Result<()>where
P0: IntoParam<HDC>,
Trait Implementations§
§impl Clone for IDirect3DSurface9
impl Clone for IDirect3DSurface9
§fn clone(&self) -> IDirect3DSurface9
fn clone(&self) -> IDirect3DSurface9
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 more§impl Debug for IDirect3DSurface9
impl Debug for IDirect3DSurface9
§impl From<&IDirect3DSurface9> for &IDirect3DResource9
impl From<&IDirect3DSurface9> for &IDirect3DResource9
§fn from(value: &IDirect3DSurface9) -> Self
fn from(value: &IDirect3DSurface9) -> Self
Converts to this type from the input type.
§impl From<&IDirect3DSurface9> for &IUnknown
impl From<&IDirect3DSurface9> for &IUnknown
§fn from(value: &IDirect3DSurface9) -> Self
fn from(value: &IDirect3DSurface9) -> Self
Converts to this type from the input type.
§impl From<IDirect3DSurface9> for IDirect3DResource9
impl From<IDirect3DSurface9> for IDirect3DResource9
§fn from(value: IDirect3DSurface9) -> Self
fn from(value: IDirect3DSurface9) -> Self
Converts to this type from the input type.
§impl From<IDirect3DSurface9> for IUnknown
impl From<IDirect3DSurface9> for IUnknown
§fn from(value: IDirect3DSurface9) -> Self
fn from(value: IDirect3DSurface9) -> Self
Converts to this type from the input type.
§impl Interface for IDirect3DSurface9
impl Interface for IDirect3DSurface9
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IDirect3DSurface9
impl PartialEq for IDirect3DSurface9
§fn eq(&self, other: &IDirect3DSurface9) -> bool
fn eq(&self, other: &IDirect3DSurface9) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDirect3DSurface9
impl StructuralPartialEq for IDirect3DSurface9
Auto Trait Implementations§
impl RefUnwindSafe for IDirect3DSurface9
impl !Send for IDirect3DSurface9
impl !Sync for IDirect3DSurface9
impl Unpin for IDirect3DSurface9
impl UnwindSafe for IDirect3DSurface9
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