Skip to main content

EditSectionLayerCaller

Struct EditSectionLayerCaller 

Source
pub struct EditSectionLayerCaller<'a, S> {
    pub index: usize,
    /* private fields */
}
Available on crate feature generic only.
Expand description

レイヤー主体で関数を呼び出すための構造体。 EditSection と レイヤー番号 の組をまとめ、対象レイヤーに対する 操作を簡潔に呼び出せるようにします。

Fields§

§index: usize

Implementations§

Source§

impl<'a, S> EditSectionLayerCaller<'a, S>

Source

pub fn new(edit_section: &'a S, layer: usize) -> Self

Source§

impl<S> EditSectionLayerCaller<'_, S>
where S: ReadSectionProvider,

Source

pub fn find_object_after( &self, frame: usize, ) -> EditSectionResult<Option<ObjectHandle>>

指定のフレーム番号以降にあるオブジェクトを検索する。

§Arguments
  • frame:検索を開始するフレーム番号(0始まり)。
Source

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

レイヤーの名前を取得する。

Source

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

レイヤーの表示・非表示を取得する。

Source

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

レイヤーのロック状態を取得する。

Source

pub fn objects(&self) -> EditSectionLayerObjectsIterator<'_, S>

このレイヤーに存在するすべてのオブジェクトを、 開始フレームの昇順で走査するイテレータを返す。

Source§

impl EditSectionLayerCaller<'_, EditSection>

Source

pub fn create_object_from_alias<P: AsRef<Path>>( &self, alias: &str, frame: usize, length: usize, ) -> EditSectionResult<ObjectHandle>

オブジェクトエイリアスから指定の位置にオブジェクトを作成する。

§See Also

EditSection::create_object_from_alias

Source

pub fn create_object_from_media_file<P: AsRef<Path>>( &self, file_path: P, frame: usize, length: Option<usize>, ) -> EditSectionResult<ObjectHandle>

指定の位置にメディアファイルからオブジェクトを作成する。

§See Also

EditSection::create_object_from_media_file

Source

pub fn create_object( &self, effect: &str, frame: usize, length: Option<usize>, ) -> EditSectionResult<ObjectHandle>

指定の位置にオブジェクトを作成する。

§See Also

EditSection::create_object

Source

pub fn set_name(&self, name: Option<&str>) -> EditSectionResult<()>

レイヤーの名前を設定する。 nameNoneや空文字を指定すると、標準の名前になります。

Source

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

レイヤーの表示・非表示を設定する。

Source

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

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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