pub struct EditSectionObjectCaller<'a, S> {
pub handle: ObjectHandle,
/* private fields */
}Available on crate feature
generic only.Expand description
オブジェクト主体で関数を呼び出すための構造体。 EditSection と ObjectHandle の組をまとめ、対象オブジェクトに対する 操作を簡潔に呼び出せるようにします。
Fields§
§handle: ObjectHandleImplementations§
Source§impl<'a, S> EditSectionObjectCaller<'a, S>
impl<'a, S> 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 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>
オブジェクトの区間の数を取得する。
Source§impl EditSectionObjectCaller<'_, EditSection>
impl EditSectionObjectCaller<'_, EditSection>
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 focus_object(&self) -> EditSectionResult<()>
pub fn focus_object(&self) -> EditSectionResult<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for EditSectionObjectCaller<'a, S>
impl<'a, S> RefUnwindSafe for EditSectionObjectCaller<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for EditSectionObjectCaller<'a, S>where
S: Sync,
impl<'a, S> Sync for EditSectionObjectCaller<'a, S>where
S: Sync,
impl<'a, S> Unpin for EditSectionObjectCaller<'a, S>
impl<'a, S> UnsafeUnpin for EditSectionObjectCaller<'a, S>
impl<'a, S> UnwindSafe for EditSectionObjectCaller<'a, S>where
S: RefUnwindSafe,
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