pub struct HostAppHandle<'a> { /* private fields */ }generic only.Expand description
Implementations§
Source§impl<'plugin> HostAppHandle<'plugin>
impl<'plugin> HostAppHandle<'plugin>
Sourcepub fn create_edit_handle(&mut self) -> EditHandle
pub fn create_edit_handle(&mut self) -> EditHandle
プロジェクトデータ編集用のハンドルを登録します。
レイヤーメニューを登録します。
レイヤー編集でオブジェクト未選択時の右クリックメニューに追加されます。
名前に\\を含めるとサブメニューとして登録されます。
§See Also
オブジェクトメニューを登録します。
レイヤー編集でオブジェクト選択時の右クリックメニューに追加されます。
名前に\\を含めるとサブメニューとして登録されます。
§See Also
オブジェクト編集の設定項目メニューを登録します。
オブジェクト編集の右クリックメニューに追加されます。
名前に\\を含めるとサブメニューとして登録されます。
Self::register_object_item_and_effect_menuと違い、これはエフェクトそのものに対してはメニューが表示されず、設定項目に対してのみメニューが表示されるようになります。
§Arguments
name: メニューの名称。callback: メニューが選択されたときのコールバック関数。
§Note
register_object_item_menuのallow_effect_only = falseに相当します。
オブジェクト編集の設定項目メニューを登録します。
オブジェクト編集の右クリックメニューに追加されます。
名前に\\を含めるとサブメニューとして登録されます。
Self::register_object_item_menuと違い、これはエフェクトそのものに対してもメニューが表示されるようになります。
§Arguments
name: メニューの名称。callback: メニューが選択されたときのコールバック関数。
§Note
register_object_item_menuのallow_effect_only = trueに相当します。
Sourcepub fn register_file_drop_handler<F>(
&mut self,
name: &str,
file_filters: &[FileFilter],
callback: F,
)
pub fn register_file_drop_handler<F>( &mut self, name: &str, file_filters: &[FileFilter], callback: F, )
ファイルをドロップしたときの処理を登録します。
§Arguments
name: ドラッグ時のツールチップや入力プラグインの設定で表示する名称。file_filter: 対応するファイルフィルタ。callback: ドロップされたファイルのパスを受け取るコールバック関数。
Sourcepub fn register_window_client<T: HasWindowHandle>(
&mut self,
name: &str,
instance: &T,
) -> Result<(), HandleError>
pub fn register_window_client<T: HasWindowHandle>( &mut self, name: &str, instance: &T, ) -> Result<(), HandleError>
Sourcepub fn register_project_load_handler(
&mut self,
callback: extern "C" fn(*mut PROJECT_FILE),
)
pub fn register_project_load_handler( &mut self, callback: extern "C" fn(*mut PROJECT_FILE), )
プロジェクトファイルをロードした直後に呼ばれる関数を登録します。 また、プロジェクトの初期化時にも呼ばれます。
§Note
crate::generic::GenericPlugin::on_project_load が自動的に登録されるため、
通常はこの関数を直接使用する必要はありません。
Sourcepub fn register_project_save_handler(
&mut self,
callback: extern "C" fn(*mut PROJECT_FILE),
)
pub fn register_project_save_handler( &mut self, callback: extern "C" fn(*mut PROJECT_FILE), )
プロジェクトファイルを保存する直前に呼ばれる関数を登録します。
§Note
crate::generic::GenericPlugin::on_project_save が自動的に登録されるため、
通常はこの関数を直接使用する必要はありません。
Sourcepub fn register_clear_cache_handler(
&mut self,
callback: extern "C" fn(*mut EDIT_SECTION),
)
pub fn register_clear_cache_handler( &mut self, callback: extern "C" fn(*mut EDIT_SECTION), )
「キャッシュを破棄」が呼ばれたときに呼ばれる関数を登録します。
§Note
crate::generic::GenericPlugin::on_clear_cache が自動的に登録されるため、
通常はこの関数を直接使用する必要はありません。
Sourcepub fn register_change_scene_handler(
&mut self,
callback: extern "C" fn(*mut EDIT_SECTION),
)
pub fn register_change_scene_handler( &mut self, callback: extern "C" fn(*mut EDIT_SECTION), )
シーンを変更した直後に呼ばれる関数を登録します。
§Note
crate::generic::GenericPlugin::on_change_scene が自動的に登録されるため、
通常はこの関数を直接使用する必要はありません。
Source§impl<'a> HostAppHandle<'a>
impl<'a> HostAppHandle<'a>
Sourcepub fn register_input_plugin<T: InputPlugin + InputSingleton + 'static>(
&mut self,
handle: &SubPlugin<T>,
)
Available on crate feature input only.
pub fn register_input_plugin<T: InputPlugin + InputSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )
input only.入力プラグインを登録します。
Sourcepub fn register_input_plugin_nounwind<T: InputPlugin + InputSingleton + 'static>(
&mut self,
handle: &SubPlugin<T>,
)
Available on crate feature input only.
pub fn register_input_plugin_nounwind<T: InputPlugin + InputSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )
input only.unwindなしで入力プラグインを登録します。
Source§impl<'a> HostAppHandle<'a>
impl<'a> HostAppHandle<'a>
Sourcepub fn register_output_plugin<T: OutputPlugin + OutputSingleton + 'static>(
&mut self,
handle: &SubPlugin<T>,
)
Available on crate feature output only.
pub fn register_output_plugin<T: OutputPlugin + OutputSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )
output only.出力プラグインを登録します。
Sourcepub fn register_output_plugin_nounwind<T: OutputPlugin + OutputSingleton + 'static>(
&mut self,
handle: &SubPlugin<T>,
)
Available on crate feature output only.
pub fn register_output_plugin_nounwind<T: OutputPlugin + OutputSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )
output only.unwindなしで出力プラグインを登録します。
Source§impl<'a> HostAppHandle<'a>
impl<'a> HostAppHandle<'a>
Sourcepub fn register_filter_plugin<T: FilterPlugin + FilterSingleton + 'static>(
&mut self,
handle: &SubPlugin<T>,
)
Available on crate feature filter only.
pub fn register_filter_plugin<T: FilterPlugin + FilterSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )
filter only.フィルタープラグインを登録します。
Sourcepub fn register_filter_plugin_nounwind<T: FilterPlugin + FilterSingleton + 'static>(
&mut self,
handle: &SubPlugin<T>,
)
Available on crate feature filter only.
pub fn register_filter_plugin_nounwind<T: FilterPlugin + FilterSingleton + 'static>( &mut self, handle: &SubPlugin<T>, )
filter only.unwindなしでフィルタープラグインを登録します。
Source§impl<'a> HostAppHandle<'a>
impl<'a> HostAppHandle<'a>
Sourcepub fn register_script_module<T: ScriptModule + ScriptModuleSingleton + 'static>(
&mut self,
name: Option<&str>,
handle: &SubPlugin<T>,
)
Available on crate feature module only.
pub fn register_script_module<T: ScriptModule + ScriptModuleSingleton + 'static>( &mut self, name: Option<&str>, handle: &SubPlugin<T>, )
module only.Sourcepub fn register_script_module_nounwind<T: ScriptModule + ScriptModuleSingleton + 'static>(
&mut self,
name: Option<&str>,
handle: &SubPlugin<T>,
)
Available on crate feature module only.
pub fn register_script_module_nounwind<T: ScriptModule + ScriptModuleSingleton + 'static>( &mut self, name: Option<&str>, handle: &SubPlugin<T>, )
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> UnsafeUnpin for HostAppHandle<'a>
impl<'a> !UnwindSafe for HostAppHandle<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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