HostAppHandle

Struct HostAppHandle 

Source
pub struct HostAppHandle<'a> { /* private fields */ }
Available on crate feature generic only.
Expand description

ホストアプリケーションのハンドル。 プラグインの初期化処理で使用します。

§Panics

この方がプラグインの初期化処理の外で使用された場合はPanicします。

Implementations§

Source§

impl<'a> HostAppHandle<'a>

Source

pub fn set_plugin_information(&mut self, information: &str)

プラグインの情報を設定します。 「プラグイン情報」ダイアログで表示されます。

Source

pub fn create_edit_handle(&mut self) -> EditHandle

プロジェクトデータ編集用のハンドルを登録します。

Source

pub fn register_import_menu( &mut self, name: &str, callback: extern "C" fn(*mut EDIT_SECTION), )

インポートメニューを登録します。

§See Also
Source

pub fn register_export_menu( &mut self, name: &str, callback: extern "C" fn(*mut EDIT_SECTION), )

エクスポートメニューを登録します。

§See Also
Source

pub fn register_layer_menu( &mut self, name: &str, callback: extern "C" fn(*mut EDIT_SECTION), )

レイヤーメニューを登録します。 レイヤー編集でオブジェクト未選択時の右クリックメニューに追加されます。

§See Also
Source

pub fn register_object_menu( &mut self, name: &str, callback: extern "C" fn(*mut EDIT_SECTION), )

オブジェクトメニューを登録します。 レイヤー編集でオブジェクト選択時の右クリックメニューに追加されます。

§See Also
Source

pub fn register_window_client<T: HasWindowHandle>( &mut self, name: &str, instance: &T, ) -> Result<(), HandleError>

ウィンドウクライアントを登録します。

§Panics

Win32のウィンドウハンドル以外が渡された場合はPanicします。

Source

pub fn register_menus<T: GenericPluginMenus>(&mut self)

メニューを一括登録します。

§See Also
Source

pub fn register_project_load_handler( &mut self, callback: extern "C" fn(*mut PROJECT_FILE), )

プロジェクトファイルをロードした直後に呼ばれる関数を登録します。 また、プロジェクトの初期化時にも呼ばれます。

§Note

crate::generic::GenericPlugin::on_project_load が自動的に登録されるため、 通常はこの関数を直接使用する必要はありません。

Source

pub fn register_project_save_handler( &mut self, callback: extern "C" fn(*mut PROJECT_FILE), )

プロジェクトファイルを保存する直前に呼ばれる関数を登録します。

§Note

crate::generic::GenericPlugin::on_project_save が自動的に登録されるため、 通常はこの関数を直接使用する必要はありません。

Source§

impl<'a> HostAppHandle<'a>

Source

pub fn register_input_plugin<T: InputPlugin + InputSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )

Available on crate feature input only.

入力プラグインを登録します。

Source§

impl<'a> HostAppHandle<'a>

Source

pub fn register_output_plugin<T: OutputPlugin + OutputSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )

Available on crate feature output only.

出力プラグインを登録します。

Source§

impl<'a> HostAppHandle<'a>

Source

pub fn register_filter_plugin<T: FilterPlugin + FilterSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )

Available on crate feature filter only.

フィルタープラグインを登録します。

Source§

impl<'a> HostAppHandle<'a>

Source

pub fn register_script_module<T: ScriptModule + ScriptModuleSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )

Available on crate feature module only.

スクリプトモジュールを登録します。

Auto Trait Implementations§

§

impl<'a> Freeze for HostAppHandle<'a>

§

impl<'a> RefUnwindSafe for HostAppHandle<'a>

§

impl<'a> !Send for HostAppHandle<'a>

§

impl<'a> !Sync for HostAppHandle<'a>

§

impl<'a> Unpin for HostAppHandle<'a>

§

impl<'a> !UnwindSafe for HostAppHandle<'a>

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.