Skip to main content

IvgPostScriptFill

Struct IvgPostScriptFill 

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

CorelDRAW IVGPostScriptFill 对象的后期绑定包装(PostScript 填充)。

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

Implementations§

Source§

impl IvgPostScriptFill

Source

pub fn new(disp: IDispatch) -> Self

由 COM IDispatch 构造包装对象。

Source

pub fn from_disp(disp: IDispatch) -> Self

从 COM IDispatch 构造包装对象,等价于 new。

Source

pub fn as_variant(&self) -> Variant

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

Source

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

PostScript 填充名。

Source

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

PostScript 填充索引。

Source

pub fn get_property_at(&self, index: i32) -> Option<i64>

读写单个属性(0..4 或 0..N)。

Source

pub fn set_property_at(&self, index: i32, v: i32) -> bool

设置属性在(put_Properties)。

Source

pub fn select(&self, index_or_name: Variant) -> bool

选择 PostScript 填充。

Source

pub fn set_properties( &self, p1: i32, p2: i32, p3: i32, p4: i32, p5: i32, ) -> bool

一次设置 5 个属性。

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.