pub struct EditSectionEffectCaller<'a, S: ReadSectionProvider> {
pub handle: EffectHandle,
/* private fields */
}Available on crate feature
generic only.Expand description
エフェクト主体で関数を呼び出すための構造体。 EditSection と EffectHandle の組をまとめ、対象エフェクトに対する 操作を簡潔に呼び出せるようにします。
Fields§
§handle: EffectHandleImplementations§
Source§impl<'a, S: ReadSectionProvider> EditSectionEffectCaller<'a, S>
impl<'a, S: ReadSectionProvider> EditSectionEffectCaller<'a, S>
pub fn new(edit_section: &'a S, effect: EffectHandle) -> Self
Source§impl<S> EditSectionEffectCaller<'_, S>where
S: ReadSectionProvider,
impl<S> EditSectionEffectCaller<'_, S>where
S: ReadSectionProvider,
Sourcepub fn get_name(&self) -> EditSectionResult<String>
pub fn get_name(&self) -> EditSectionResult<String>
エフェクト名を取得する。
Sourcepub fn get_enable(&self) -> EditSectionResult<bool>
pub fn get_enable(&self) -> EditSectionResult<bool>
エフェクトの有効・無効状態を取得する。
Sourcepub fn get_lock(&self) -> EditSectionResult<bool>
pub fn get_lock(&self) -> EditSectionResult<bool>
エフェクトのロック状態を取得する。
Sourcepub fn get_item_value(&self, item: &str) -> EditSectionResult<String>
pub fn get_item_value(&self, item: &str) -> EditSectionResult<String>
エフェクトの設定項目の値を文字列で取得する。
Sourcepub fn get_item_value_parsed<T: FromTableValue>(
&self,
item: &str,
) -> Result<T, EditSectionParsedError<<T as FromTableValue>::Err>>
Available on crate feature aviutl2-alias only.
pub fn get_item_value_parsed<T: FromTableValue>( &self, item: &str, ) -> Result<T, EditSectionParsedError<<T as FromTableValue>::Err>>
aviutl2-alias only.エフェクトの設定項目の値を取得し、パースする。
Sourcepub fn get_data_size(&self, item: &str) -> EditSectionResult<usize>
pub fn get_data_size(&self, item: &str) -> EditSectionResult<usize>
エフェクトの汎用データ項目のサイズを取得する。
Sourcepub fn get_data_value(&self, item: &str) -> EditSectionResult<Vec<u8>>
pub fn get_data_value(&self, item: &str) -> EditSectionResult<Vec<u8>>
エフェクトの汎用データ項目の値をバイト列で取得する。
Sourcepub unsafe fn get_data_value_as<T>(&self, item: &str) -> EditSectionResult<T>
pub unsafe fn get_data_value_as<T>(&self, item: &str) -> EditSectionResult<T>
Sourcepub fn get_track_value(&self, item: &str, frame: f64) -> EditSectionResult<f64>
pub fn get_track_value(&self, item: &str, frame: f64) -> EditSectionResult<f64>
指定フレーム位置でのトラックバー項目の値を取得する。
Sourcepub fn get_check_value(
&self,
item: &str,
frame: usize,
) -> EditSectionResult<bool>
pub fn get_check_value( &self, item: &str, frame: usize, ) -> EditSectionResult<bool>
指定フレーム位置でのチェックボックス項目の値を取得する。
Sourcepub fn get_track_info(&self, item: &str) -> EditSectionResult<TrackInfo>
pub fn get_track_info(&self, item: &str) -> EditSectionResult<TrackInfo>
トラックバー項目の情報を取得する。
Source§impl EditSectionEffectCaller<'_, EditSection>
impl EditSectionEffectCaller<'_, EditSection>
Sourcepub fn set_enable(&self, enable: bool) -> EditSectionResult<()>
pub fn set_enable(&self, enable: bool) -> EditSectionResult<()>
エフェクトの有効・無効状態を設定する。
Sourcepub fn set_lock(&self, lock: bool) -> EditSectionResult<()>
pub fn set_lock(&self, lock: bool) -> EditSectionResult<()>
エフェクトのロック状態を設定する。
Sourcepub fn set_item_value(&self, item: &str, value: &str) -> EditSectionResult<()>
pub fn set_item_value(&self, item: &str, value: &str) -> EditSectionResult<()>
エフェクトの設定項目の値を文字列で設定する。
Sourcepub fn set_data_value(&self, item: &str, data: &[u8]) -> EditSectionResult<()>
pub fn set_data_value(&self, item: &str, data: &[u8]) -> EditSectionResult<()>
エフェクトの汎用データ項目の値をバイト列で設定する。
Sourcepub fn set_data_value_with<T>(
&self,
item: &str,
data: &T,
) -> EditSectionResult<()>
pub fn set_data_value_with<T>( &self, item: &str, data: &T, ) -> EditSectionResult<()>
エフェクトの汎用データ項目の値を指定の型で設定する。
Trait Implementations§
Source§impl<S: ReadSectionProvider> Deref for EditSectionEffectCaller<'_, S>
impl<S: ReadSectionProvider> Deref for EditSectionEffectCaller<'_, S>
Auto Trait Implementations§
impl<'a, S> Freeze for EditSectionEffectCaller<'a, S>
impl<'a, S> RefUnwindSafe for EditSectionEffectCaller<'a, S>where
&'a S: RefUnwindSafe,
impl<'a, S> Send for EditSectionEffectCaller<'a, S>
impl<'a, S> Sync for EditSectionEffectCaller<'a, S>
impl<'a, S> Unpin for EditSectionEffectCaller<'a, S>
impl<'a, S> UnsafeUnpin for EditSectionEffectCaller<'a, S>where
&'a S: UnsafeUnpin,
impl<'a, S> UnwindSafe for EditSectionEffectCaller<'a, S>where
&'a S: UnwindSafe,
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<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> ⓘ
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