pub struct WindowsCaptureGraphicsCaptureItem(/* private fields */);
Expand description
Exported for the trait bounds
Implementationsยง
Sourceยงimpl GraphicsCaptureItem
impl GraphicsCaptureItem
pub fn DisplayName(&self) -> Result<HSTRING, Error>
pub fn Size(&self) -> Result<SizeInt32, Error>
pub fn Closed<P0>(&self, handler: P0) -> Result<i64, Error>
pub fn RemoveClosed(&self, token: i64) -> Result<(), Error>
pub fn TryCreateFromDisplayId( displayid: DisplayId, ) -> Result<GraphicsCaptureItem, Error>
Trait Implementationsยง
Sourceยงimpl Clone for GraphicsCaptureItem
impl Clone for GraphicsCaptureItem
Sourceยงfn clone(&self) -> GraphicsCaptureItem
fn clone(&self) -> GraphicsCaptureItem
Returns a duplicate 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 moreSourceยงimpl Debug for GraphicsCaptureItem
impl Debug for GraphicsCaptureItem
Sourceยงimpl Interface for GraphicsCaptureItem
impl Interface for GraphicsCaptureItem
Sourceยงconst IID: GUID = <IGraphicsCaptureItem as windows_core::Interface>::IID
const IID: GUID = <IGraphicsCaptureItem as windows_core::Interface>::IID
The
GUID
associated with the interface.Sourceยง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.Sourceยง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.
Sourceยง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 moreSourceยงfn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
This casts the given COM interface to [
&dyn Any
]. Read moreSourceยงfn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the โouterโ
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read moreSourceยงfn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the โouterโ
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read moreSourceยงfn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a
Weak
reference to this object.Sourceยงunsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
Call
QueryInterface
on this interface Read moreSourceยงfn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
Creates an
InterfaceRef
for this reference. The InterfaceRef
tracks lifetimes statically,
and eliminates the need for dynamic reference count adjustments (AddRef/Release).Sourceยงimpl PartialEq for GraphicsCaptureItem
impl PartialEq for GraphicsCaptureItem
impl Eq for GraphicsCaptureItem
impl Send for GraphicsCaptureItem
impl StructuralPartialEq for GraphicsCaptureItem
impl Sync for GraphicsCaptureItem
Auto Trait Implementationsยง
impl Freeze for GraphicsCaptureItem
impl RefUnwindSafe for GraphicsCaptureItem
impl Unpin for GraphicsCaptureItem
impl UnwindSafe for GraphicsCaptureItem
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more