pub struct EditSection {
pub info: EditInfo,
/* private fields */
}Available on crate feature
generic only.Expand description
編集セクションのハンドル。
Fields§
§info: EditInfo編集情報。
Implementations§
Source§impl EditSection
impl EditSection
Sourcepub unsafe fn from_raw(ptr: *mut EDIT_SECTION) -> Self
pub unsafe fn from_raw(ptr: *mut EDIT_SECTION) -> Self
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 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_name(
&self,
object: &ObjectHandle,
) -> EditSectionResult<Option<String>>
pub fn get_object_name( &self, object: &ObjectHandle, ) -> EditSectionResult<Option<String>>
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 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>
オブジェクトの設定項目の値を文字列で取得します。
§Arguments
object:対象のオブジェクトハンドル。effect_name:設定項目の名前。effect_index:同じ名前の設定項目が複数ある場合のインデックス(0始まり)。item:設定項目の名前。(エイリアスファイルのキーの名前)
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 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 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 is_support_media_file<P: AsRef<str>>(
&self,
file_path: P,
mode: MediaFileSupportMode,
) -> EditSectionResult<bool>
pub fn is_support_media_file<P: AsRef<str>>( &self, file_path: P, mode: MediaFileSupportMode, ) -> EditSectionResult<bool>
指定のメディアファイルがサポートされているかどうか調べます。
Sourcepub fn get_media_info<P: AsRef<str>>(
&self,
file_path: P,
) -> EditSectionResult<MediaInfo>
pub fn get_media_info<P: AsRef<str>>( &self, file_path: P, ) -> EditSectionResult<MediaInfo>
Sourcepub fn create_object_from_media_file<P: AsRef<str>>(
&self,
file_path: P,
layer: usize,
frame: usize,
length: Option<usize>,
) -> EditSectionResult<ObjectHandle>
pub fn create_object_from_media_file<P: AsRef<str>>( &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 object_exists(&self, object: &ObjectHandle) -> bool
pub fn object_exists(&self, object: &ObjectHandle) -> bool
Sourcepub fn layers(&self) -> EditSectionLayersIterator<'_> ⓘ
pub fn layers(&self) -> EditSectionLayersIterator<'_> ⓘ
すべてのレイヤーをイテレータで取得します。
Sourcepub fn layer<'a>(&'a self, layer: usize) -> EditSectionLayerCaller<'a>
pub fn layer<'a>(&'a self, layer: usize) -> EditSectionLayerCaller<'a>
EditSectionLayerCaller を作成します。
Sourcepub fn object<'a>(
&'a self,
object: &'a ObjectHandle,
) -> EditSectionObjectCaller<'a>
pub fn object<'a>( &'a self, object: &'a ObjectHandle, ) -> EditSectionObjectCaller<'a>
EditSectionObjectCaller を作成します。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditSection
impl RefUnwindSafe for EditSection
impl !Send for EditSection
impl !Sync for EditSection
impl Unpin 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
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