pub struct EditSectionLayerCaller<'a, S> {
pub index: usize,
/* private fields */
}Available on crate feature
generic only.Expand description
レイヤー主体で関数を呼び出すための構造体。 EditSection と レイヤー番号 の組をまとめ、対象レイヤーに対する 操作を簡潔に呼び出せるようにします。
Fields§
§index: usizeImplementations§
Source§impl<'a, S> EditSectionLayerCaller<'a, S>
impl<'a, S> EditSectionLayerCaller<'a, S>
Source§impl<S> EditSectionLayerCaller<'_, S>where
S: ReadSectionProvider,
impl<S> EditSectionLayerCaller<'_, S>where
S: ReadSectionProvider,
Sourcepub fn find_object_after(
&self,
frame: usize,
) -> EditSectionResult<Option<ObjectHandle>>
pub fn find_object_after( &self, frame: usize, ) -> EditSectionResult<Option<ObjectHandle>>
Sourcepub fn get_name(&self) -> EditSectionResult<Option<String>>
pub fn get_name(&self) -> EditSectionResult<Option<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 objects(&self) -> EditSectionLayerObjectsIterator<'_, S> ⓘ
pub fn objects(&self) -> EditSectionLayerObjectsIterator<'_, S> ⓘ
このレイヤーに存在するすべてのオブジェクトを、 開始フレームの昇順で走査するイテレータを返す。
Source§impl EditSectionLayerCaller<'_, EditSection>
impl EditSectionLayerCaller<'_, EditSection>
Sourcepub fn create_object_from_alias<P: AsRef<Path>>(
&self,
alias: &str,
frame: usize,
length: usize,
) -> EditSectionResult<ObjectHandle>
pub fn create_object_from_alias<P: AsRef<Path>>( &self, alias: &str, frame: usize, length: usize, ) -> EditSectionResult<ObjectHandle>
Sourcepub fn create_object_from_media_file<P: AsRef<Path>>(
&self,
file_path: P,
frame: usize,
length: Option<usize>,
) -> EditSectionResult<ObjectHandle>
pub fn create_object_from_media_file<P: AsRef<Path>>( &self, file_path: P, frame: usize, length: Option<usize>, ) -> EditSectionResult<ObjectHandle>
Sourcepub fn create_object(
&self,
effect: &str,
frame: usize,
length: Option<usize>,
) -> EditSectionResult<ObjectHandle>
pub fn create_object( &self, effect: &str, frame: usize, length: Option<usize>, ) -> EditSectionResult<ObjectHandle>
Sourcepub fn set_name(&self, name: Option<&str>) -> EditSectionResult<()>
pub fn set_name(&self, name: Option<&str>) -> EditSectionResult<()>
レイヤーの名前を設定する。
nameにNoneや空文字を指定すると、標準の名前になります。
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<()>
レイヤーのロック状態を設定する。
Auto Trait Implementations§
impl<'a, S> Freeze for EditSectionLayerCaller<'a, S>
impl<'a, S> RefUnwindSafe for EditSectionLayerCaller<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for EditSectionLayerCaller<'a, S>where
S: Sync,
impl<'a, S> Sync for EditSectionLayerCaller<'a, S>where
S: Sync,
impl<'a, S> Unpin for EditSectionLayerCaller<'a, S>
impl<'a, S> UnsafeUnpin for EditSectionLayerCaller<'a, S>
impl<'a, S> UnwindSafe for EditSectionLayerCaller<'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