pub struct ICorelScriptTools { /* private fields */ }Expand description
CorelDRAW 对象的后期绑定包装(脚本工具)。
所有属性与方法通过 IDispatch::Invoke 按名称调用,调用失败时一般返回 None 或 false。
Implementations§
Source§impl ICorelScriptTools
impl ICorelScriptTools
Sourcepub fn length_convert(&self, from: i32, to: i32, value: f64) -> Option<f64>
pub fn length_convert(&self, from: i32, to: i32, value: f64) -> Option<f64>
长度转换(COM 方法 LengthConvert)。
Sourcepub fn angle_convert(&self, from: i32, to: i32, value: f64) -> Option<f64>
pub fn angle_convert(&self, from: i32, to: i32, value: f64) -> Option<f64>
角度转换(COM 方法 AngleConvert)。
Sourcepub fn format_time(
&self,
time: f64,
format: impl Into<String>,
) -> Option<String>
pub fn format_time( &self, time: f64, format: impl Into<String>, ) -> Option<String>
调用 CorelDRAW COM 接口。
Sourcepub fn get_temp_folder(&self) -> Option<String>
pub fn get_temp_folder(&self) -> Option<String>
读取 COM 属性 GetTempFolder。
Sourcepub fn get_curr_folder(&self) -> Option<String>
pub fn get_curr_folder(&self) -> Option<String>
读取 COM 属性 GetCurrFolder。
Sourcepub fn get_script_folder(&self) -> Option<String>
pub fn get_script_folder(&self) -> Option<String>
读取脚本文件夹(GetScriptFolder)。
Sourcepub fn rename(
&self,
src: impl Into<String>,
dst: impl Into<String>,
overwrite: i32,
) -> Option<bool>
pub fn rename( &self, src: impl Into<String>, dst: impl Into<String>, overwrite: i32, ) -> Option<bool>
调用 COM 方法 Rename。
Sourcepub fn get_file_box(
&self,
filter: impl Into<String>,
title: impl Into<String>,
dialog_type: i32,
file: impl Into<String>,
extension: impl Into<String>,
folder: impl Into<String>,
button: impl Into<String>,
) -> Option<String>
pub fn get_file_box( &self, filter: impl Into<String>, title: impl Into<String>, dialog_type: i32, file: impl Into<String>, extension: impl Into<String>, folder: impl Into<String>, button: impl Into<String>, ) -> Option<String>
读取文件框(GetFileBox)。
Sourcepub fn get_folder(
&self,
init_folder: impl Into<String>,
title: impl Into<String>,
parent_window_handle: i32,
) -> Option<String>
pub fn get_folder( &self, init_folder: impl Into<String>, title: impl Into<String>, parent_window_handle: i32, ) -> Option<String>
读取文件夹(GetFolder)。
Sourcepub fn get_app_handle(&self) -> Option<i64>
pub fn get_app_handle(&self) -> Option<i64>
读取应用手柄(GetAppHandle)。
Sourcepub fn get_win_handle(&self) -> Option<i64>
pub fn get_win_handle(&self) -> Option<i64>
读取 COM 属性 GetWinHandle。
Sourcepub fn get_command_line(&self) -> Option<String>
pub fn get_command_line(&self) -> Option<String>
读取命令线(GetCommandLine)。
Sourcepub fn get_version(&self, option: i32) -> Option<i64>
pub fn get_version(&self, option: i32) -> Option<i64>
读取版本(GetVersion)。
Sourcepub fn begin_wait_cursor(&self) -> bool
pub fn begin_wait_cursor(&self) -> bool
开始 wait 光标(COM 方法 BeginWaitCursor)。
Sourcepub fn end_wait_cursor(&self) -> bool
pub fn end_wait_cursor(&self) -> bool
结束 wait 光标(COM 方法 EndWaitCursor)。
Sourcepub fn from_centimeters(&self, v: f64) -> Option<f64>
pub fn from_centimeters(&self, v: f64) -> Option<f64>
调用 CorelDRAW COM 接口。
Sourcepub fn to_centimeters(&self, v: f64) -> Option<f64>
pub fn to_centimeters(&self, v: f64) -> Option<f64>
调用 CorelDRAW COM 接口。
Sourcepub fn from_inches(&self, v: f64) -> Option<f64>
pub fn from_inches(&self, v: f64) -> Option<f64>
调用 CorelDRAW COM 接口。
Sourcepub fn from_points(&self, v: f64) -> Option<f64>
pub fn from_points(&self, v: f64) -> Option<f64>
从…构造点集。
Auto Trait Implementations§
impl !Send for ICorelScriptTools
impl !Sync for ICorelScriptTools
impl Freeze for ICorelScriptTools
impl RefUnwindSafe for ICorelScriptTools
impl Unpin for ICorelScriptTools
impl UnsafeUnpin for ICorelScriptTools
impl UnwindSafe for ICorelScriptTools
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more