pub struct EditHandle { /* private fields */ }generic only.Expand description
Implementations§
Source§impl EditHandle
impl EditHandle
Sourcepub fn call_edit_section<'a, T, F>(
&self,
callback: F,
) -> Result<T, EditHandleError>
pub fn call_edit_section<'a, T, F>( &self, callback: F, ) -> Result<T, EditHandleError>
Sourcepub fn call_read_section<'a, T, F>(
&self,
callback: F,
) -> Result<T, EditHandleError>
pub fn call_read_section<'a, T, F>( &self, callback: F, ) -> Result<T, EditHandleError>
Sourcepub fn get_edit_info(&self) -> EditInfo
pub fn get_edit_info(&self) -> EditInfo
編集情報を取得する。
Sourcepub fn restart_host_app(&self)
pub fn restart_host_app(&self)
ホストアプリケーションを再起動する。
Sourcepub fn enumerate_effects<F>(&self, callback: F)
pub fn enumerate_effects<F>(&self, callback: F)
Sourcepub fn get_effects(&self) -> Vec<Effect>
pub fn get_effects(&self) -> Vec<Effect>
エフェクトの一覧を取得する。
Sourcepub fn enumerate_effect_items<F>(
&self,
effect: &str,
callback: F,
) -> Result<(), EditHandleError>where
F: FnMut(EffectItemInfo),
pub fn enumerate_effect_items<F>(
&self,
effect: &str,
callback: F,
) -> Result<(), EditHandleError>where
F: FnMut(EffectItemInfo),
Sourcepub fn get_effect_items(
&self,
effect: &str,
) -> Result<Vec<EffectItemInfo>, EditHandleError>
pub fn get_effect_items( &self, effect: &str, ) -> Result<Vec<EffectItemInfo>, EditHandleError>
Sourcepub fn get_effect_item_group_index(
&self,
effect: &str,
item_name: &str,
) -> Result<Option<usize>, EditHandleError>
pub fn get_effect_item_group_index( &self, effect: &str, item_name: &str, ) -> Result<Option<usize>, EditHandleError>
指定の設定項目が所属するグループ内での所属インデックスを取得する。
Sourcepub fn get_effect_item_group_names(
&self,
effect: &str,
item_name: &str,
) -> Result<Option<Vec<String>>, EditHandleError>
pub fn get_effect_item_group_names( &self, effect: &str, item_name: &str, ) -> Result<Option<Vec<String>>, EditHandleError>
指定の設定項目が所属するグループ、または指定したグループの所属アイテム名を取得する。
Sourcepub fn enumerate_modules<F>(&self, callback: F)where
F: FnMut(ModuleInfo),
pub fn enumerate_modules<F>(&self, callback: F)where
F: FnMut(ModuleInfo),
モジュールの一覧をコールバック関数で取得する。
Sourcepub fn get_modules(&self) -> Vec<ModuleInfo>
pub fn get_modules(&self) -> Vec<ModuleInfo>
モジュールの一覧を取得する。
Sourcepub fn get_host_app_window_raw(&self) -> Option<Win32WindowHandle>
pub fn get_host_app_window_raw(&self) -> Option<Win32WindowHandle>
ホストアプリケーションのメインウィンドウのハンドルをraw_window_handle::Win32WindowHandleとして取得する。
Sourcepub unsafe fn get_host_app_window(&self) -> Option<WindowHandle<'_>>
pub unsafe fn get_host_app_window(&self) -> Option<WindowHandle<'_>>
ホストアプリケーションのメインウィンドウのハンドルを[raw_window_handle::WindowHandle]として取得する。
§Safety
[raw_window_handle::WindowHandle::borrow_raw] を参照してください。
Sourcepub fn get_edit_state(&self) -> Result<EditState, EditHandleError>
pub fn get_edit_state(&self) -> Result<EditState, EditHandleError>
編集状態を取得する。
Sourcepub fn rendering_scene_video<F>(
&self,
frame: u32,
callback: F,
) -> Result<(), EditHandleError>
pub fn rendering_scene_video<F>( &self, frame: u32, callback: F, ) -> Result<(), EditHandleError>
現在のシーンの映像レンダリングを要求する。
この関数はレンダリングタスクの追加のみを行います。レンダリング完了時に コールバックがイベント通知スレッドから呼ばれます。
Sourcepub fn rendering_scene_audio<F>(
&self,
frame: u32,
callback: F,
) -> Result<(), EditHandleError>
pub fn rendering_scene_audio<F>( &self, frame: u32, callback: F, ) -> Result<(), EditHandleError>
現在のシーンの音声レンダリングを要求する。
この関数はレンダリングタスクの追加のみを行います。レンダリング完了時に コールバックがイベント通知スレッドから呼ばれます。
Sourcepub fn rendering_object_video<F>(
&self,
object: ObjectHandle,
frame: u32,
apply_effect: bool,
callback: F,
) -> Result<(), EditHandleError>
pub fn rendering_object_video<F>( &self, object: ObjectHandle, frame: u32, apply_effect: bool, callback: F, ) -> Result<(), EditHandleError>
指定のオブジェクトの映像のレンダリングを要求する。
レンダリング完了時はイベント通知スレッドからコールバックが呼ばれます。
§Arguments
object:レンダリング対象のオブジェクト。frame:レンダリング対象のフレーム番号。apply_effect:レンダリング時にエフェクトを適用するかどうか。callback:レンダリング完了時に呼ばれるコールバック関数。
Sourcepub fn rendering_object_audio<F>(
&self,
object: ObjectHandle,
frame: u32,
apply_effect: bool,
callback: F,
) -> Result<(), EditHandleError>
pub fn rendering_object_audio<F>( &self, object: ObjectHandle, frame: u32, apply_effect: bool, callback: F, ) -> Result<(), EditHandleError>
指定のオブジェクトの音声のレンダリングを要求する。
レンダリング完了時はイベント通知スレッドからコールバックが呼ばれます。
§Arguments
object:レンダリング対象のオブジェクト。frame:レンダリング対象のフレーム番号。apply_effect:レンダリング時にエフェクトを適用するかどうか。callback:レンダリング完了時に呼ばれるコールバック関数。
Sourcepub fn wait_rendering_task(&self)
pub fn wait_rendering_task(&self)
レンダリング中のタスクが全て完了するまで待機する。
§Note
この関数をSelf::call_read_sectionやSelf::call_edit_sectionのコールバック内で呼び出すとデッドロックする可能性があります。
Sourcepub fn enumerate_font_names<F>(&self, callback: F)
pub fn enumerate_font_names<F>(&self, callback: F)
フォント名の一覧をコールバック関数で取得する。
Sourcepub fn get_font_names(&self) -> Vec<String>
pub fn get_font_names(&self) -> Vec<String>
フォント名の一覧を取得する。
Sourcepub fn enumerate_palette_names<F>(&self, callback: F)
pub fn enumerate_palette_names<F>(&self, callback: F)
パレット名の一覧をコールバック関数で取得する。
Sourcepub fn get_palette_names(&self) -> Vec<String>
pub fn get_palette_names(&self) -> Vec<String>
パレット名の一覧を取得する。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditHandle
impl RefUnwindSafe for EditHandle
impl Unpin for EditHandle
impl UnsafeUnpin for EditHandle
impl UnwindSafe for EditHandle
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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