Skip to main content

IvgPolygon

Struct IvgPolygon 

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

CorelDRAW IVGPolygon 对象的后期绑定包装(多边形)。

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

Implementations§

Source§

impl IvgPolygon

Source

pub fn new(disp: IDispatch) -> Self

由 COM IDispatch 构造包装对象。

Source

pub fn from_disp(disp: IDispatch) -> Self

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

Source

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

cdrPolygonType

Source

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

设置多边形类型(Type)。

Source

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

读取 COM 属性 Sides。

Source

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

设置 COM 属性 Sides。

Source

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

读取 COM 属性 Sharpness。

Source

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

设置 COM 属性 Sharpness。

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.