Skip to main content

EditSectionEffectCaller

Struct EditSectionEffectCaller 

Source
pub struct EditSectionEffectCaller<'a, S: ReadSectionProvider> {
    pub handle: EffectHandle,
    /* private fields */
}
Available on crate feature generic only.
Expand description

エフェクト主体で関数を呼び出すための構造体。 EditSection と EffectHandle の組をまとめ、対象エフェクトに対する 操作を簡潔に呼び出せるようにします。

Fields§

§handle: EffectHandle

Implementations§

Source§

impl<'a, S: ReadSectionProvider> EditSectionEffectCaller<'a, S>

Source

pub fn new(edit_section: &'a S, effect: EffectHandle) -> Self

Source§

impl<S> EditSectionEffectCaller<'_, S>

Source

pub fn exists(&self) -> bool

このエフェクトが存在するかどうか調べる。

Source

pub fn get_name(&self) -> EditSectionResult<String>

エフェクト名を取得する。

Source

pub fn get_enable(&self) -> EditSectionResult<bool>

エフェクトの有効・無効状態を取得する。

Source

pub fn get_lock(&self) -> EditSectionResult<bool>

エフェクトのロック状態を取得する。

Source

pub fn get_item_value(&self, item: &str) -> EditSectionResult<String>

エフェクトの設定項目の値を文字列で取得する。

Source

pub fn get_item_value_parsed<T: FromTableValue>( &self, item: &str, ) -> Result<T, EditSectionParsedError<<T as FromTableValue>::Err>>
where <T as FromTableValue>::Err: Error + Sync + Send + 'static,

Available on crate feature aviutl2-alias only.

エフェクトの設定項目の値を取得し、パースする。

Source

pub fn get_data_size(&self, item: &str) -> EditSectionResult<usize>

エフェクトの汎用データ項目のサイズを取得する。

Source

pub fn get_data_value(&self, item: &str) -> EditSectionResult<Vec<u8>>

エフェクトの汎用データ項目の値をバイト列で取得する。

Source

pub unsafe fn get_data_value_as<T>(&self, item: &str) -> EditSectionResult<T>

エフェクトの汎用データ項目の値を指定の型で取得する。

§Safety

Trepr(C) であり、かつエフェクトのデータ項目のサイズと一致している必要があります。

Source

pub fn get_track_value(&self, item: &str, frame: f64) -> EditSectionResult<f64>

指定フレーム位置でのトラックバー項目の値を取得する。

Source

pub fn get_check_value( &self, item: &str, frame: usize, ) -> EditSectionResult<bool>

指定フレーム位置でのチェックボックス項目の値を取得する。

Source

pub fn get_track_info(&self, item: &str) -> EditSectionResult<TrackInfo>

トラックバー項目の情報を取得する。

Source§

impl EditSectionEffectCaller<'_, EditSection>

Source

pub fn set_enable(&self, enable: bool) -> EditSectionResult<()>

エフェクトの有効・無効状態を設定する。

Source

pub fn set_lock(&self, lock: bool) -> EditSectionResult<()>

エフェクトのロック状態を設定する。

Source

pub fn set_item_value(&self, item: &str, value: &str) -> EditSectionResult<()>

エフェクトの設定項目の値を文字列で設定する。

Source

pub fn set_data_value(&self, item: &str, data: &[u8]) -> EditSectionResult<()>

エフェクトの汎用データ項目の値をバイト列で設定する。

Source

pub fn set_data_value_with<T>( &self, item: &str, data: &T, ) -> EditSectionResult<()>

エフェクトの汎用データ項目の値を指定の型で設定する。

Trait Implementations§

Source§

impl<S: ReadSectionProvider> Deref for EditSectionEffectCaller<'_, S>

Source§

type Target = EffectHandle

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

§

impl<'a, S> Freeze for EditSectionEffectCaller<'a, S>
where &'a S: Freeze,

§

impl<'a, S> RefUnwindSafe for EditSectionEffectCaller<'a, S>

§

impl<'a, S> Send for EditSectionEffectCaller<'a, S>
where &'a S: Send,

§

impl<'a, S> Sync for EditSectionEffectCaller<'a, S>
where &'a S: Sync,

§

impl<'a, S> Unpin for EditSectionEffectCaller<'a, S>
where &'a S: Unpin,

§

impl<'a, S> UnsafeUnpin for EditSectionEffectCaller<'a, S>

§

impl<'a, S> UnwindSafe for EditSectionEffectCaller<'a, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more