#[non_exhaustive]pub struct SurfaceState {
pub interop: DxInterop,
pub info: SurfaceInfo,
/* private fields */
}Expand description
Data associated to a specific window for overlay rendering.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interop: DxInterop§info: SurfaceInfoImplementations§
Source§impl SurfaceState
impl SurfaceState
pub fn new( interop: DxInterop, size: (u32, u32), info: SurfaceInfo, ) -> Result<Self>
pub fn size(&self) -> (u32, u32)
pub fn position(&self) -> (i32, i32)
pub fn reposition(&self, x: i32, y: i32)
pub fn commit_overlay_texture( &self, handle: Option<SharedTextureHandle>, ) -> Result<()>
Auto Trait Implementations§
impl !Freeze for SurfaceState
impl !RefUnwindSafe for SurfaceState
impl Send for SurfaceState
impl Sync for SurfaceState
impl Unpin for SurfaceState
impl UnsafeUnpin for SurfaceState
impl UnwindSafe for SurfaceState
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