pub struct GlobalEditHandle { /* private fields */ }Available on crate feature
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 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>
編集状態を取得する。
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
Mutably borrows from an owned value. Read more
§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>
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 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>
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
impl<T> Pointable for T
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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().