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