Skip to main content

ICuiApplication

Struct ICuiApplication 

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

CorelDRAW 对象的后期绑定包装(应用)。

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

Implementations§

Source§

impl ICuiApplication

Source

pub fn new(disp: IDispatch) -> Self

由 COM IDispatch 构造包装对象。

Source

pub fn from_disp(disp: IDispatch) -> Self

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

Source

pub fn data_context(&self) -> Option<ICuiDataContext>

读取数据上下文(DataContext)。

Source

pub fn framework(&self) -> Option<ICuiFrameWork>

读取 COM 属性 FrameWork。

Source

pub fn create_image_list(&self) -> Option<ICuiImageList>

创建图像列表(COM 方法 CreateImageList)。

Source

pub fn create_bitmap_image( &self, image_data: Variant, max_size: i32, ) -> Option<ICuiBitmapImage>

ImageData 是 VARIANT(SAFEARRAY / IStream)。

Source

pub fn create_screen_rect( &self, left: i32, top: i32, width: i32, height: i32, ) -> Option<ICuiScreenRect>

创建屏幕矩形(COM 方法 CreateScreenRect)。

Source

pub fn create_status_text(&self) -> Option<ICuiStatusText>

创建状态文本(COM 方法 CreateStatusText)。

Source

pub fn load_localized_string(&self, guid: impl Into<String>) -> Option<String>

调用 COM 方法 LoadLocalizedString。

Source

pub fn register_data_source( &self, name: impl Into<String>, factory: IDispatch, category_list: impl Into<String>, auto_create_instance: bool, ) -> Option<bool>

注册数据源(COM 方法 RegisterDataSource)。

Source

pub fn unregister_data_source(&self, name: impl Into<String>) -> Option<bool>

注销数据源(COM 方法 UnregisterDataSource)。

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.