跳到主要内容

GraphicsCaptureItem

搜索

结构体 GraphicsCaptureItem 

源代码
pub struct GraphicsCaptureItem(/* private fields */);
展开描述

为 trait 约束导出

实现§

源代码§

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>
where P0: Param<TypedEventHandler<GraphicsCaptureItem, IInspectable>>,

源代码

pub fn RemoveClosed(&self, token: i64) -> Result<(), Error>

源代码

pub fn TryCreateFromDisplayId( displayid: DisplayId, ) -> Result<GraphicsCaptureItem, Error>

trait 实现§

源代码§

impl Clone for GraphicsCaptureItem

源代码§

fn clone(&self) -> GraphicsCaptureItem

返回该值的一个副本。 阅读更多
1.0.0 · 源代码§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. 阅读更多
源代码§

impl Debug for GraphicsCaptureItem

源代码§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

使用给定的格式化器格式化该值。 阅读更多
源代码§

impl Interface for GraphicsCaptureItem

源代码§

const IID: GUID = <IGraphicsCaptureItem as windows_core::Interface>::IID

与该接口关联的 GUID
源代码§

fn as_raw(&self) -> *mut c_void

返回原始的 COM 接口指针。返回的指针仍由 Interface 实现所拥有。
源代码§

fn into_raw(self) -> *mut c_void

返回原始的 COM 接口指针并释放所有权。释放该 COM 接口指针是调用者的责任。
源代码§

unsafe fn from_raw(raw: *mut c_void) -> Self

通过获取 raw COM 接口指针的所有权来创建一个 Interface阅读更多
源代码§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

创建一个在 raw COM 接口指针有效期间一直有效的 Interface阅读更多
源代码§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

尝试使用 QueryInterface 将当前接口转换为另一个接口。 阅读更多
源代码§

fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. 阅读更多
源代码§

fn is_object<T>(&self) -> bool
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

Returns true if the given COM interface refers to an implementation of T. 阅读更多
源代码§

fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

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. 阅读更多
源代码§

fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

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. 阅读更多
源代码§

fn downgrade(&self) -> Result<Weak<Self>, Error>

尝试创建此对象的 Weak 引用。
源代码§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

在此接口上调用 QueryInterface 阅读更多
源代码§

fn to_ref(&self) -> InterfaceRef<'_, Self>

为此引用创建一个 InterfaceRefInterfaceRef 在静态层面追踪生命周期, 无需动态引用计数调整(AddRef/Release)。
源代码§

impl PartialEq for GraphicsCaptureItem

源代码§

fn eq(&self, other: &GraphicsCaptureItem) -> bool

测试 selfother 的值是否相等,被 == 使用。
1.0.0 · 源代码§

fn ne(&self, other: &Rhs) -> bool

测试 !=。默认实现几乎总是足够的, 没有充分的理由不应该被重写。
源代码§

impl Eq for GraphicsCaptureItem

源代码§

impl Send for GraphicsCaptureItem

源代码§

impl StructuralPartialEq for GraphicsCaptureItem

源代码§

impl Sync for GraphicsCaptureItem

自动 trait 实现§

blanket 实现§

源代码§

impl<T> Any for T
where T: 'static + ?Sized,

源代码§

fn type_id(&self) -> TypeId

获取 selfTypeId阅读更多
源代码§

impl<T> Borrow<T> for T
where T: ?Sized,

源代码§

fn borrow(&self) -> &T

从拥有的值不可变地借用。 阅读更多
源代码§

impl<T> BorrowMut<T> for T
where T: ?Sized,

源代码§

fn borrow_mut(&mut self) -> &mut T

从拥有的值可变地借用。 阅读更多
源代码§

impl<T> CloneToUninit for T
where T: Clone,

源代码§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 阅读更多
源代码§

impl<T> From<T> for T

源代码§

fn from(t: T) -> T

原样返回参数。

源代码§

impl<T, U> Into<U> for T
where U: From<T>,

源代码§

fn into(self) -> U

调用 U::from(self)

也就是说,此转换是 From<T> for U 实现所选择执行的操作。

源代码§

impl<T> IntoEither for T

源代码§

fn into_either(self, into_left: bool) -> Either<Self, Self>

into_lefttrue,则将 self 转换为 Either<Self, Self>Left 变体; 否则将 self 转换为 Either<Self, Self>Right 变体。 阅读更多
源代码§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

into_left(&self) 返回 true,则将 self 转换为 Either<Self, Self>Left 变体; 否则将 self 转换为 Either<Self, Self>Right 变体。 阅读更多
源代码§

impl<T> Pointable for T

源代码§

const ALIGN: usize

指针的对齐方式。
源代码§

type Init = T

初始化器的类型。
源代码§

unsafe fn init(init: <T as Pointable>::Init) -> usize

使用给定的初始化器初始化内存。 阅读更多
源代码§

unsafe fn deref<'a>(ptr: usize) -> &'a T

解引用给定的指针。 阅读更多
源代码§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

可变地解引用给定的指针。 阅读更多
源代码§

unsafe fn drop(ptr: usize)

释放给定指针指向的对象。 阅读更多
源代码§

impl<T> ToOwned for T
where T: Clone,

源代码§

type Owned = T

获取所有权后得到的类型。
源代码§

fn to_owned(&self) -> T

从借用数据创建自有数据,通常通过克隆实现。 阅读更多
源代码§

fn clone_into(&self, target: &mut T)

使用借用数据替换自有数据,通常通过克隆实现。 阅读更多
源代码§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

源代码§

type Error = Infallible

在转换出错时返回的类型。
源代码§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

执行转换。
源代码§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

源代码§

type Error = <U as TryFrom<T>>::Error

在转换出错时返回的类型。
源代码§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

执行转换。