pub struct GlobalEditHandle { /* private fields */ }generic only.Expand description
グローバルに EditHandle を保持するための構造体。
OnceLock と違い、もし初期化していない状態でアクセスした場合にパニックします。
Implementations§
Methods from Deref<Target = 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§
Source§impl Debug for GlobalEditHandle
impl Debug for GlobalEditHandle
Source§impl Default for GlobalEditHandle
impl Default for GlobalEditHandle
Auto Trait Implementations§
impl !Freeze for GlobalEditHandle
impl RefUnwindSafe for GlobalEditHandle
impl Send for GlobalEditHandle
impl Sync for GlobalEditHandle
impl Unpin for GlobalEditHandle
impl UnsafeUnpin for GlobalEditHandle
impl UnwindSafe for GlobalEditHandle
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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().