Skip to main content

IvgToolShapeAttributes

Struct IvgToolShapeAttributes 

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

CorelDRAW IVGToolShape 对象的后期绑定包装(工具图形属性)。

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

Implementations§

Source§

impl IvgToolShapeAttributes

Source

pub fn new(disp: IDispatch) -> Self

由 COM IDispatch 构造包装对象。

Source

pub fn as_variant(&self) -> Variant

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

Source

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

设置是否可以 resize。

Source

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

设置是否可以 rotate。

Source

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

设置是否可以倾斜。

Source

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

设置 COM 属性。

Source

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

设置 COM 属性。

Source

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

设置 COM 属性。

Source

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

设置 COM 属性。

Source

pub fn set_property_bar_guid(&self, v: impl Into<String>) -> bool

设置属性栏 GUID。

Source

pub fn set_context_menu_guid(&self, v: impl Into<String>) -> bool

设置上下文菜单 GUID。

Source

pub fn set_object_manager_bitmap_guid(&self, v: impl Into<String>) -> bool

设置对象管理器位图 GUID。

Source

pub fn set_edit_state_guid(&self, v: impl Into<String>) -> bool

设置编辑状态 GUID。

Source

pub fn set_default_shape_name(&self, v: impl Into<String>) -> bool

设置默认值图形名称。

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.