pub struct EditSectionObjectCaller<'a, S: ReadSectionProvider> {
pub handle: ObjectHandle,
/* private fields */
}Available on crate feature
generic only.Expand description
オブジェクト主体で関数を呼び出すための構造体。 EditSection と ObjectHandle の組をまとめ、対象オブジェクトに対する 操作を簡潔に呼び出せるようにします。
Fields§
§handle: ObjectHandleImplementations§
Source§impl<'a, S: ReadSectionProvider> EditSectionObjectCaller<'a, S>
impl<'a, S: ReadSectionProvider> EditSectionObjectCaller<'a, S>
pub fn new(edit_section: &'a S, object: ObjectHandle) -> Self
Source§impl<S> EditSectionObjectCaller<'_, S>where
S: ReadSectionProvider,
impl<S> EditSectionObjectCaller<'_, S>where
S: ReadSectionProvider,
Sourcepub fn get_layer_frame(&self) -> EditSectionResult<ObjectLayerFrame>
pub fn get_layer_frame(&self) -> EditSectionResult<ObjectLayerFrame>
オブジェクトのレイヤーとフレーム情報を取得する。
Sourcepub fn get_alias(&self) -> EditSectionResult<String>
pub fn get_alias(&self) -> EditSectionResult<String>
オブジェクトの情報をエイリアスデータとして取得する。
Sourcepub fn get_alias_parsed(&self) -> EditSectionResult<Table>
Available on crate feature aviutl2-alias only.
pub fn get_alias_parsed(&self) -> EditSectionResult<Table>
aviutl2-alias only.オブジェクトの情報をエイリアスデータとして取得し、パースする。
Sourcepub fn count_effect(&self, effect: &str) -> EditSectionResult<usize>
pub fn count_effect(&self, effect: &str) -> EditSectionResult<usize>
Sourcepub fn find_effect(
&self,
effect_name: &str,
effect_index: usize,
) -> EditSectionResult<EffectHandle>
pub fn find_effect( &self, effect_name: &str, effect_index: usize, ) -> EditSectionResult<EffectHandle>
オブジェクトからエフェクトを検索する。
Sourcepub fn get_first_effect(&self) -> EditSectionResult<EffectHandle>
pub fn get_first_effect(&self) -> EditSectionResult<EffectHandle>
オブジェクトの先頭のエフェクトを取得する。
Sourcepub fn get_effects(&self) -> EditSectionResult<Vec<EffectHandle>>
pub fn get_effects(&self) -> EditSectionResult<Vec<EffectHandle>>
オブジェクトのエフェクト一覧を取得する。
Sourcepub fn get_effect_item(
&self,
effect_name: &str,
effect_index: usize,
item: &str,
) -> EditSectionResult<String>
pub fn get_effect_item( &self, effect_name: &str, effect_index: usize, item: &str, ) -> EditSectionResult<String>
オブジェクトの設定項目の値を文字列で取得する。
§Arguments
effect_name:設定項目の名前。effect_index:同じ名前の設定項目が複数ある場合のインデックス(0始まり)。item:設定項目の名前。(エイリアスファイルのキーの名前)
Sourcepub fn get_effect_item_parsed<T: FromTableValue>(
&self,
effect_name: &str,
effect_index: usize,
item: &str,
) -> Result<T, EditSectionParsedError<<T as FromTableValue>::Err>>
Available on crate feature aviutl2-alias only.
pub fn get_effect_item_parsed<T: FromTableValue>( &self, effect_name: &str, effect_index: usize, item: &str, ) -> Result<T, EditSectionParsedError<<T as FromTableValue>::Err>>
aviutl2-alias only.Sourcepub fn get_name(&self) -> EditSectionResult<Option<String>>
pub fn get_name(&self) -> EditSectionResult<Option<String>>
Sourcepub fn get_section_num(&self) -> EditSectionResult<usize>
pub fn get_section_num(&self) -> EditSectionResult<usize>
オブジェクトの区間の数を取得する。
Sourcepub fn get_section_frame(&self, section: usize) -> EditSectionResult<usize>
pub fn get_section_frame(&self, section: usize) -> EditSectionResult<usize>
オブジェクトの区間の開始フレーム番号を取得する。
Sourcepub fn get_section_frames(&self) -> EditSectionResult<Vec<usize>>
pub fn get_section_frames(&self) -> EditSectionResult<Vec<usize>>
オブジェクトの区間のフレーム番号の一覧を取得する。
Sourcepub fn get_track_value(
&self,
effect_name: &str,
effect_index: usize,
item: &str,
frame: f64,
) -> EditSectionResult<f64>
pub fn get_track_value( &self, effect_name: &str, effect_index: usize, item: &str, frame: f64, ) -> EditSectionResult<f64>
指定フレーム位置でのトラックバー項目の値を取得する。
Sourcepub fn get_check_value(
&self,
effect_name: &str,
effect_index: usize,
item: &str,
frame: usize,
) -> EditSectionResult<bool>
pub fn get_check_value( &self, effect_name: &str, effect_index: usize, item: &str, frame: usize, ) -> EditSectionResult<bool>
指定フレーム位置でのチェックボックス項目の値を取得する。
Sourcepub fn get_track_info(
&self,
effect_name: &str,
effect_index: usize,
item: &str,
) -> EditSectionResult<TrackInfo>
pub fn get_track_info( &self, effect_name: &str, effect_index: usize, item: &str, ) -> EditSectionResult<TrackInfo>
トラックバー項目の情報を取得する。
Sourcepub fn get_track_group_names(
&self,
effect_name: &str,
effect_index: usize,
group_name: &str,
) -> EditSectionResult<Vec<String>>
pub fn get_track_group_names( &self, effect_name: &str, effect_index: usize, group_name: &str, ) -> EditSectionResult<Vec<String>>
オブジェクトのトラックバーグループの所属アイテム名を取得する。
Source§impl EditSectionObjectCaller<'_, EditSection>
impl EditSectionObjectCaller<'_, EditSection>
Sourcepub fn create_effect(&self, effect: &str) -> EditSectionResult<EffectHandle>
pub fn create_effect(&self, effect: &str) -> EditSectionResult<EffectHandle>
オブジェクトにエフェクトを追加する。
Sourcepub fn delete_effect(&self, effect: EffectHandle) -> EditSectionResult<()>
pub fn delete_effect(&self, effect: EffectHandle) -> EditSectionResult<()>
オブジェクトからエフェクトを削除する。
Sourcepub fn move_effect(
&self,
effect: EffectHandle,
index: usize,
) -> EditSectionResult<usize>
pub fn move_effect( &self, effect: EffectHandle, index: usize, ) -> EditSectionResult<usize>
オブジェクトのエフェクトの順序を移動する。
Sourcepub fn create_section(&self, frame: usize) -> EditSectionResult<()>
pub fn create_section(&self, frame: usize) -> EditSectionResult<()>
オブジェクトに中間点(区間)を追加する。
Sourcepub fn delete_section(&self, section: usize) -> EditSectionResult<()>
pub fn delete_section(&self, section: usize) -> EditSectionResult<()>
オブジェクトの中間点(区間)を削除する。
Sourcepub fn move_section(
&self,
section: usize,
new_frame: usize,
) -> EditSectionResult<()>
pub fn move_section( &self, section: usize, new_frame: usize, ) -> EditSectionResult<()>
オブジェクトの中間点(区間)を移動する。
区間をまたいだ移動は出来ません。
Sourcepub fn set_effect_item(
&self,
effect_name: &str,
effect_index: usize,
item: &str,
value: &str,
) -> EditSectionResult<()>
pub fn set_effect_item( &self, effect_name: &str, effect_index: usize, item: &str, value: &str, ) -> EditSectionResult<()>
オブジェクトの設定項目の値を文字列で設定する。
§Arguments
effect_name:設定項目の名前。effect_index:同じ名前の設定項目が複数ある場合のインデックス(0始まり)。item:設定項目の名前。(エイリアスファイルのキーの名前)value:設定する値。
Sourcepub fn move_object(
&self,
new_layer: usize,
new_start_frame: usize,
) -> EditSectionResult<()>
pub fn move_object( &self, new_layer: usize, new_start_frame: usize, ) -> EditSectionResult<()>
Sourcepub fn delete_object(&self) -> EditSectionResult<()>
pub fn delete_object(&self) -> EditSectionResult<()>
オブジェクトを削除する。
Sourcepub fn set_focus_object(&self) -> EditSectionResult<()>
pub fn set_focus_object(&self) -> EditSectionResult<()>
Trait Implementations§
Source§impl<S: ReadSectionProvider> Deref for EditSectionObjectCaller<'_, S>
impl<S: ReadSectionProvider> Deref for EditSectionObjectCaller<'_, S>
Auto Trait Implementations§
impl<'a, S> Freeze for EditSectionObjectCaller<'a, S>
impl<'a, S> RefUnwindSafe for EditSectionObjectCaller<'a, S>where
&'a S: RefUnwindSafe,
impl<'a, S> Send for EditSectionObjectCaller<'a, S>
impl<'a, S> Sync for EditSectionObjectCaller<'a, S>
impl<'a, S> Unpin for EditSectionObjectCaller<'a, S>
impl<'a, S> UnsafeUnpin for EditSectionObjectCaller<'a, S>where
&'a S: UnsafeUnpin,
impl<'a, S> UnwindSafe for EditSectionObjectCaller<'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