pub struct EditSection {
pub info: EditInfo,
/* private fields */
}generic only.Expand description
編集セクションのハンドル。
Fields§
§info: EditInfo編集情報。
Implementations§
Source§impl EditSection
impl EditSection
Sourcepub fn create_object_from_alias(
&self,
alias: &str,
layer: usize,
frame: usize,
length: usize,
) -> EditSectionResult<ObjectHandle>
pub fn create_object_from_alias( &self, alias: &str, layer: usize, frame: usize, length: usize, ) -> EditSectionResult<ObjectHandle>
Sourcepub fn set_object_name(
&self,
object: ObjectHandle,
name: Option<&str>,
) -> EditSectionResult<()>
pub fn set_object_name( &self, object: ObjectHandle, name: Option<&str>, ) -> EditSectionResult<()>
Sourcepub fn set_object_effect_item(
&self,
object: ObjectHandle,
effect_name: &str,
effect_index: usize,
item: &str,
value: &str,
) -> EditSectionResult<()>
pub fn set_object_effect_item( &self, object: ObjectHandle, effect_name: &str, effect_index: usize, item: &str, value: &str, ) -> EditSectionResult<()>
オブジェクトの設定項目の値を文字列で設定する。
§Arguments
object:対象のオブジェクトハンドル。effect_name:設定項目の名前。effect_index:同じ名前の設定項目が複数ある場合のインデックス(0始まり)。item:設定項目の名前。(エイリアスファイルのキーの名前)value:設定する値。
Sourcepub fn move_object(
&self,
object: ObjectHandle,
new_layer: usize,
new_start_frame: usize,
) -> EditSectionResult<()>
pub fn move_object( &self, object: ObjectHandle, new_layer: usize, new_start_frame: usize, ) -> EditSectionResult<()>
オブジェクトを移動する。
Sourcepub fn delete_object(&self, object: ObjectHandle) -> EditSectionResult<()>
pub fn delete_object(&self, object: ObjectHandle) -> EditSectionResult<()>
オブジェクトを削除する。
Sourcepub fn focus_object(&self, object: ObjectHandle) -> EditSectionResult<()>
pub fn focus_object(&self, object: ObjectHandle) -> EditSectionResult<()>
Sourcepub fn get_project_file<'handle>(
&'handle self,
edit_handle: &EditHandle,
) -> ProjectFile<'handle>
pub fn get_project_file<'handle>( &'handle self, edit_handle: &EditHandle, ) -> ProjectFile<'handle>
プロジェクトファイルのポインタを取得する。
Sourcepub fn get_mouse_layer_frame(&self) -> EditSectionResult<Option<LayerFrameData>>
pub fn get_mouse_layer_frame(&self) -> EditSectionResult<Option<LayerFrameData>>
Sourcepub fn pos_to_layer_frame(
&self,
x: i32,
y: i32,
) -> EditSectionResult<Option<LayerFrameData>>
pub fn pos_to_layer_frame( &self, x: i32, y: i32, ) -> EditSectionResult<Option<LayerFrameData>>
指定のスクリーン座標のレイヤー・フレーム位置を取得する。
Sourcepub fn create_object_from_media_file<P: AsRef<Path>>(
&self,
file_path: P,
layer: usize,
frame: usize,
length: Option<usize>,
) -> EditSectionResult<ObjectHandle>
pub fn create_object_from_media_file<P: AsRef<Path>>( &self, file_path: P, layer: usize, frame: usize, length: Option<usize>, ) -> EditSectionResult<ObjectHandle>
指定の位置にメディアファイルからオブジェクトを作成する。
§Arguments
file_path:メディアファイルのパス。layer:作成するオブジェクトのレイヤー番号(0始まり)。frame:作成するオブジェクトのフレーム番号(0始まり)。length:作成するオブジェクトの長さ(フレーム数)。Noneを指定した場合、長さや追加位置は自動的に調整されます。
Sourcepub fn create_object(
&self,
effect: &str,
layer: usize,
frame: usize,
length: Option<usize>,
) -> EditSectionResult<ObjectHandle>
pub fn create_object( &self, effect: &str, layer: usize, frame: usize, length: Option<usize>, ) -> EditSectionResult<ObjectHandle>
指定の位置にオブジェクトを作成する。
§Arguments
effect:エフェクト名。(エイリアスファイルの effect.name の値)layer:作成するオブジェクトのレイヤー番号(0始まり)。frame:作成するオブジェクトのフレーム番号(0始まり)。length:作成するオブジェクトの長さ(フレーム数)。Noneを指定した場合、長さや追加位置は自動的に調整されます。
Sourcepub fn set_cursor_layer_frame(
&self,
layer: usize,
frame: usize,
) -> EditSectionResult<()>
pub fn set_cursor_layer_frame( &self, layer: usize, frame: usize, ) -> EditSectionResult<()>
Sourcepub fn set_display_layer_frame(
&self,
layer: usize,
frame: usize,
) -> EditSectionResult<()>
pub fn set_display_layer_frame( &self, layer: usize, frame: usize, ) -> EditSectionResult<()>
Sourcepub fn set_select_range(
&self,
start: usize,
end: usize,
) -> EditSectionResult<()>
pub fn set_select_range( &self, start: usize, end: usize, ) -> EditSectionResult<()>
Sourcepub fn clear_select_range(&self) -> EditSectionResult<()>
pub fn clear_select_range(&self) -> EditSectionResult<()>
選択されているフレーム範囲選択を解除する。
Sourcepub fn set_grid_bpm(
&self,
tempo: f32,
beat: usize,
offset: f32,
) -> EditSectionResult<()>
pub fn set_grid_bpm( &self, tempo: f32, beat: usize, offset: f32, ) -> EditSectionResult<()>
グリッド(BPM)を設定する。
Sourcepub fn set_layer_name(
&self,
layer: usize,
name: Option<&str>,
) -> EditSectionResult<()>
pub fn set_layer_name( &self, layer: usize, name: Option<&str>, ) -> EditSectionResult<()>
レイヤーの名前を設定する。
nameにNoneや空文字を指定すると、標準の名前になります。
Sourcepub fn set_scene_name(&self, name: &str) -> EditSectionResult<()>
pub fn set_scene_name(&self, name: &str) -> EditSectionResult<()>
シーン名を設定する。
Sourcepub fn set_scene_size(
&self,
width: usize,
height: usize,
) -> EditSectionResult<()>
pub fn set_scene_size( &self, width: usize, height: usize, ) -> EditSectionResult<()>
シーンの解像度を設定する。
Sourcepub fn set_scene_fps(&self, fps: Rational32) -> EditSectionResult<()>
pub fn set_scene_fps(&self, fps: Rational32) -> EditSectionResult<()>
シーンのフレームレートを設定する。
Sourcepub fn set_scene_sample_rate(&self, sample_rate: usize) -> EditSectionResult<()>
pub fn set_scene_sample_rate(&self, sample_rate: usize) -> EditSectionResult<()>
シーンのサンプルレートを設定する。
Sourcepub fn set_layer_enable(
&self,
layer: usize,
enable: bool,
) -> EditSectionResult<()>
pub fn set_layer_enable( &self, layer: usize, enable: bool, ) -> EditSectionResult<()>
レイヤーの表示・非表示を設定する。
Sourcepub fn set_layer_lock(&self, layer: usize, lock: bool) -> EditSectionResult<()>
pub fn set_layer_lock(&self, layer: usize, lock: bool) -> EditSectionResult<()>
レイヤーのロック状態を設定する。
Sourcepub fn layers(&self) -> EditSectionLayersIterator<'_> ⓘ
pub fn layers(&self) -> EditSectionLayersIterator<'_> ⓘ
すべてのレイヤーをイテレータで取得する。
Sourcepub fn objects_in_layer(
&self,
layer: usize,
) -> EditSectionLayerObjectsIterator<'_, EditSection> ⓘ
pub fn objects_in_layer( &self, layer: usize, ) -> EditSectionLayerObjectsIterator<'_, EditSection> ⓘ
特定のレイヤー内のオブジェクトをイテレータで取得する。
Sourcepub fn layer<'a>(
&'a self,
layer: usize,
) -> EditSectionLayerCaller<'a, EditSection>
pub fn layer<'a>( &'a self, layer: usize, ) -> EditSectionLayerCaller<'a, EditSection>
EditSectionLayerCaller を作成する。
Sourcepub fn object<'a>(
&'a self,
object: ObjectHandle,
) -> EditSectionObjectCaller<'a, EditSection>
pub fn object<'a>( &'a self, object: ObjectHandle, ) -> EditSectionObjectCaller<'a, EditSection>
EditSectionObjectCaller を作成する。
Methods from Deref<Target = ReadSection>§
Sourcepub fn find_object_after(
&self,
layer: usize,
frame: usize,
) -> EditSectionResult<Option<ObjectHandle>>
pub fn find_object_after( &self, layer: usize, frame: usize, ) -> EditSectionResult<Option<ObjectHandle>>
Sourcepub fn count_object_effect(
&self,
object: ObjectHandle,
effect: &str,
) -> EditSectionResult<usize>
pub fn count_object_effect( &self, object: ObjectHandle, effect: &str, ) -> EditSectionResult<usize>
オブジェクトに対象エフェクトが何個存在するかを取得する。
Sourcepub fn get_object_layer_frame(
&self,
object: ObjectHandle,
) -> EditSectionResult<ObjectLayerFrame>
pub fn get_object_layer_frame( &self, object: ObjectHandle, ) -> EditSectionResult<ObjectLayerFrame>
指定のオブジェクトのレイヤーとフレーム情報を取得する。
Sourcepub fn get_object_alias(
&self,
object: ObjectHandle,
) -> EditSectionResult<String>
pub fn get_object_alias( &self, object: ObjectHandle, ) -> EditSectionResult<String>
オブジェクトの情報をエイリアスデータとして取得する。
Sourcepub fn get_object_alias_parsed(
&self,
object: ObjectHandle,
) -> Result<Table, EditSectionParsedError<TableParseError>>
Available on crate feature aviutl2-alias only.
pub fn get_object_alias_parsed( &self, object: ObjectHandle, ) -> Result<Table, EditSectionParsedError<TableParseError>>
aviutl2-alias only.オブジェクトの情報をエイリアスデータとして取得し、パースする。
Sourcepub fn get_object_name(
&self,
object: ObjectHandle,
) -> EditSectionResult<Option<String>>
pub fn get_object_name( &self, object: ObjectHandle, ) -> EditSectionResult<Option<String>>
オブジェクト名を取得する。
Sourcepub fn get_object_effect_item(
&self,
object: ObjectHandle,
effect_name: &str,
effect_index: usize,
item: &str,
) -> EditSectionResult<String>
pub fn get_object_effect_item( &self, object: ObjectHandle, effect_name: &str, effect_index: usize, item: &str, ) -> EditSectionResult<String>
オブジェクトの設定項目の値を文字列で取得する。
Sourcepub fn get_object_effect_item_parsed<T: FromTableValue>(
&self,
object: ObjectHandle,
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_object_effect_item_parsed<T: FromTableValue>( &self, object: ObjectHandle, effect_name: &str, effect_index: usize, item: &str, ) -> Result<T, EditSectionParsedError<<T as FromTableValue>::Err>>
aviutl2-alias only.オブジェクトの設定項目の値を取得し、パースする。
Sourcepub fn get_focused_object(&self) -> EditSectionResult<Option<ObjectHandle>>
pub fn get_focused_object(&self) -> EditSectionResult<Option<ObjectHandle>>
現在、オブジェクト設定ウィンドウで選択されているオブジェクトを取得する。
Sourcepub fn get_selected_objects(&self) -> EditSectionResult<Vec<ObjectHandle>>
pub fn get_selected_objects(&self) -> EditSectionResult<Vec<ObjectHandle>>
現在選択されているオブジェクトの一覧を取得する。
Sourcepub fn is_support_media_file<P: AsRef<Path>>(
&self,
file_path: P,
mode: MediaFileSupportMode,
) -> EditSectionResult<bool>
pub fn is_support_media_file<P: AsRef<Path>>( &self, file_path: P, mode: MediaFileSupportMode, ) -> EditSectionResult<bool>
指定のメディアファイルがサポートされているかどうか調べる。
Sourcepub fn get_media_info<P: AsRef<Path>>(
&self,
file_path: P,
) -> EditSectionResult<MediaInfo>
pub fn get_media_info<P: AsRef<Path>>( &self, file_path: P, ) -> EditSectionResult<MediaInfo>
指定のメディアファイルの情報を取得する。
Sourcepub fn get_layer_name(&self, layer: usize) -> EditSectionResult<Option<String>>
pub fn get_layer_name(&self, layer: usize) -> EditSectionResult<Option<String>>
レイヤーの名前を取得する。
Sourcepub fn get_scene_name(&self) -> EditSectionResult<String>
pub fn get_scene_name(&self) -> EditSectionResult<String>
シーン名を取得する。
Sourcepub fn get_layer_enable(&self, layer: usize) -> EditSectionResult<bool>
pub fn get_layer_enable(&self, layer: usize) -> EditSectionResult<bool>
レイヤーの表示・非表示を取得する。
Sourcepub fn get_layer_lock(&self, layer: usize) -> EditSectionResult<bool>
pub fn get_layer_lock(&self, layer: usize) -> EditSectionResult<bool>
レイヤーのロック状態を取得する。
Sourcepub fn get_object_section_num(
&self,
object: ObjectHandle,
) -> EditSectionResult<usize>
pub fn get_object_section_num( &self, object: ObjectHandle, ) -> EditSectionResult<usize>
オブジェクトの区間の数を取得する。
Sourcepub fn get_focus_object_section(&self) -> EditSectionResult<Option<usize>>
pub fn get_focus_object_section(&self) -> EditSectionResult<Option<usize>>
選択中オブジェクトの区間の位置を取得する。
Sourcepub fn object_exists(&self, object: ObjectHandle) -> bool
pub fn object_exists(&self, object: ObjectHandle) -> bool
オブジェクトが存在するかどうか調べる。
Sourcepub fn objects_in_layer(
&self,
layer: usize,
) -> EditSectionLayerObjectsIterator<'_, ReadSection> ⓘ
pub fn objects_in_layer( &self, layer: usize, ) -> EditSectionLayerObjectsIterator<'_, ReadSection> ⓘ
特定のレイヤー内のオブジェクトをイテレータで取得する。
Sourcepub fn layer<'a>(
&'a self,
layer: usize,
) -> EditSectionLayerCaller<'a, ReadSection>
pub fn layer<'a>( &'a self, layer: usize, ) -> EditSectionLayerCaller<'a, ReadSection>
EditSectionLayerCaller を作成する。
Sourcepub fn object<'a>(
&'a self,
object: ObjectHandle,
) -> EditSectionObjectCaller<'a, ReadSection>
pub fn object<'a>( &'a self, object: ObjectHandle, ) -> EditSectionObjectCaller<'a, ReadSection>
EditSectionObjectCaller を作成する。
Trait Implementations§
Source§impl Debug for EditSection
impl Debug for EditSection
Auto Trait Implementations§
impl Freeze for EditSection
impl RefUnwindSafe for EditSection
impl !Send for EditSection
impl !Sync for EditSection
impl Unpin for EditSection
impl UnsafeUnpin for EditSection
impl UnwindSafe for EditSection
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
§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>
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>
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