Skip to main content

IvgColorProfile

Struct IvgColorProfile 

Source
pub struct IvgColorProfile { /* private fields */ }
Expand description

CorelDRAW 对象的后期绑定包装(颜色配置文件)。

所有属性与方法通过 IDispatch::Invoke 按名称调用,调用失败时一般返回 None 或 false。

Implementations§

Source§

impl IvgColorProfile

Source

pub fn new(disp: IDispatch) -> Self

由 COM IDispatch 构造包装对象。

Source

pub fn name(&self) -> Option<String>

读取名称(Name)。

Source

pub fn file_name(&self) -> Option<String>

读取文件名称(FileName)。

Source

pub fn manufacturer(&self) -> Option<String>

读取 COM 属性 Manufacturer。

Source

pub fn device_model(&self) -> Option<String>

读取设备模型(DeviceModel)。

Source

pub fn device_type(&self) -> Option<i64>

读取设备类型(DeviceType)。

Source

pub fn selected(&self) -> Option<bool>

读取已选中(Selected)。

Source

pub fn generic(&self) -> Option<bool>

读取 COM 属性 Generic。

Source

pub fn installed(&self) -> Option<bool>

读取已安装(Installed)。

Source

pub fn id(&self) -> Option<String>

读取标识(ID)。

Source

pub fn color_model(&self) -> Option<i64>

读取颜色模型(ColorModel)。

Source

pub fn select(&self) -> bool

选择(COM 方法 Select)。

Source

pub fn create_color_context( &self, rendering_intent: i32, ) -> Option<IvgColorContext>

用当前 profile + 渲染意图创建 ColorContext

Source

pub fn is_same(&self, other: &IvgColorProfile) -> Option<bool>

是否相同(COM 方法 IsSame)。

Source

pub fn as_variant(&self) -> Variant

把底层 COM 对象包装成 VARIANT,用于传给其它 COM 调用。

Source

pub fn dispatch(&self) -> &IDispatch

分发。

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.