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_ptr(ptr: *mut EDIT_SECTION) -> Self
pub unsafe fn from_ptr(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_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 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