跳转到主要内容

PickedGraphicsCaptureItem

搜索

结构体 PickedGraphicsCaptureItem 

源码
pub struct PickedGraphicsCaptureItem {
    pub item: GraphicsCaptureItem,
    /* private fields */
}
展开描述

成功选择的图形捕获项目及其关联的窗口守卫。

字段§

§item: GraphicsCaptureItem

新选择的 GraphicsCaptureItem(窗口或监视器)。

实现§

源码§

impl PickedGraphicsCaptureItem

源码

pub fn size(&self) -> Result<(i32, i32)>

返回新选项目的尺寸,为 (width, height)

trait 实现§

源码§

impl TryInto<GraphicsCaptureItemType> for PickedGraphicsCaptureItem

源码§

type Error = Error

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

fn try_into(self) -> Result<GraphicsCaptureItemType, Self::Error>

执行转换。

自动 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> 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 转换为 Left 变体的 Either<Self, Self>; 否则将其转换为 Right 变体的 Either<Self, Self>了解更多
源码§

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

into_left(&self) 返回 true 时,将 self 转换为 Left 变体的 Either<Self, Self>; 否则将其转换为 Right 变体的 Either<Self, Self>了解更多
源码§

impl<T> Pointable for T

源码§

const ALIGN: usize

指针的对齐方式。
源码§

type Init = T

用于初始化的类型。
源码§

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

使用给定的初始化器初始化 a。 了解更多
源码§

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, 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>

执行转换。