Struct windows::Graphics::Capture::GraphicsCaptureItem
pub struct GraphicsCaptureItem(/* private fields */);
Implementations§
§impl GraphicsCaptureItem
impl GraphicsCaptureItem
pub fn DisplayName(&self) -> Result<HSTRING>
pub fn Size(&self) -> Result<SizeInt32>
pub fn Closed<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
pub fn RemoveClosed(&self, token: EventRegistrationToken) -> Result<()>
pub fn CreateFromVisual<P0>(visual: P0) -> Result<GraphicsCaptureItem>where
P0: IntoParam<Visual>,
pub fn TryCreateFromWindowId(windowid: WindowId) -> Result<GraphicsCaptureItem>
pub fn TryCreateFromDisplayId( displayid: DisplayId ) -> Result<GraphicsCaptureItem>
Trait Implementations§
§impl Clone for GraphicsCaptureItem
impl Clone for GraphicsCaptureItem
§fn clone(&self) -> GraphicsCaptureItem
fn clone(&self) -> GraphicsCaptureItem
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 GraphicsCaptureItem
impl Debug for GraphicsCaptureItem
§impl From<&GraphicsCaptureItem> for &IInspectable
impl From<&GraphicsCaptureItem> for &IInspectable
§fn from(value: &GraphicsCaptureItem) -> Self
fn from(value: &GraphicsCaptureItem) -> Self
Converts to this type from the input type.
§impl From<&GraphicsCaptureItem> for &IUnknown
impl From<&GraphicsCaptureItem> for &IUnknown
§fn from(value: &GraphicsCaptureItem) -> Self
fn from(value: &GraphicsCaptureItem) -> Self
Converts to this type from the input type.
§impl From<GraphicsCaptureItem> for IInspectable
impl From<GraphicsCaptureItem> for IInspectable
§fn from(value: GraphicsCaptureItem) -> Self
fn from(value: GraphicsCaptureItem) -> Self
Converts to this type from the input type.
§impl From<GraphicsCaptureItem> for IUnknown
impl From<GraphicsCaptureItem> for IUnknown
§fn from(value: GraphicsCaptureItem) -> Self
fn from(value: GraphicsCaptureItem) -> Self
Converts to this type from the input type.
§impl Interface for GraphicsCaptureItem
impl Interface for GraphicsCaptureItem
§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 GraphicsCaptureItem
impl PartialEq for GraphicsCaptureItem
§fn eq(&self, other: &GraphicsCaptureItem) -> bool
fn eq(&self, other: &GraphicsCaptureItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GraphicsCaptureItem
impl Send for GraphicsCaptureItem
impl StructuralPartialEq for GraphicsCaptureItem
impl Sync for GraphicsCaptureItem
Auto Trait Implementations§
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