pub enum UIAction {
Show 38 variants
TryBeginModalAction(Box<dyn ModalAction>),
EditContext(&'static str, Box<dyn FnOnce(&mut EditContext) -> DataSetResult<EndContextBehavior>>),
Undo,
Redo,
SaveAll,
RevertAll,
RevertAllNoConfirm,
Quit,
QuitNoConfirm,
PersistAssets(Vec<AssetId>),
BuildAll,
ReimportAndRebuild(Vec<AssetId>),
ForceRebuild(Vec<AssetId>),
ShowAssetInAssetGallery(AssetId),
MoveAssets(Vec<AssetId>, AssetLocation),
MoveOrRename(Vec<AssetId>, Option<AssetName>, AssetLocation),
NewAsset(AssetName, AssetLocation, SchemaRecord, Option<AssetId>),
DuplicateAssets(Vec<AssetId>),
DeleteAssets(Vec<AssetId>),
SetProperty(Vec<AssetId>, PropertyPath, Option<Value>, EndContextBehavior),
ClearPropertiesForRecord(Vec<AssetId>, PropertyPath, SchemaFingerprint),
CommitPendingUndoContext,
ApplyPropertyOverrideToPrototype(Vec<AssetId>, PropertyPath),
ApplyPropertyOverrideToPrototypeForRecord(Vec<AssetId>, PropertyPath, SchemaFingerprint),
ApplyResolvedPropertyToAllSelected(AssetId, Vec<AssetId>, PropertyPath),
ApplyResolvedPropertyToAllSelectedForRecord(AssetId, Vec<AssetId>, PropertyPath, SchemaFingerprint),
SetNullOverride(Vec<AssetId>, PropertyPath, NullOverride),
AddDynamicArrayEntry(AssetId, PropertyPath),
AddMapEntry(AssetId, PropertyPath),
RemoveDynamicArrayEntry(AssetId, PropertyPath, Uuid),
RemoveMapEntry(AssetId, PropertyPath, Uuid),
MoveDynamicArrayEntryUp(AssetId, PropertyPath, Uuid),
MoveDynamicArrayEntryDown(AssetId, PropertyPath, Uuid),
MoveStaticArrayOverrideUp(Vec<AssetId>, PropertyPath, usize),
MoveStaticArrayOverrideDown(Vec<AssetId>, PropertyPath, usize),
OverrideWithDefault(Vec<AssetId>, PropertyPath),
SetOverrideBehavior(Vec<AssetId>, PropertyPath, OverrideBehavior),
ToggleSelectAllAssetGallery,
}Variants§
TryBeginModalAction(Box<dyn ModalAction>)
EditContext(&'static str, Box<dyn FnOnce(&mut EditContext) -> DataSetResult<EndContextBehavior>>)
Undo
Redo
SaveAll
RevertAll
RevertAllNoConfirm
Quit
QuitNoConfirm
PersistAssets(Vec<AssetId>)
BuildAll
ReimportAndRebuild(Vec<AssetId>)
ForceRebuild(Vec<AssetId>)
ShowAssetInAssetGallery(AssetId)
MoveAssets(Vec<AssetId>, AssetLocation)
MoveOrRename(Vec<AssetId>, Option<AssetName>, AssetLocation)
NewAsset(AssetName, AssetLocation, SchemaRecord, Option<AssetId>)
DuplicateAssets(Vec<AssetId>)
DeleteAssets(Vec<AssetId>)
SetProperty(Vec<AssetId>, PropertyPath, Option<Value>, EndContextBehavior)
ClearPropertiesForRecord(Vec<AssetId>, PropertyPath, SchemaFingerprint)
CommitPendingUndoContext
ApplyPropertyOverrideToPrototype(Vec<AssetId>, PropertyPath)
ApplyPropertyOverrideToPrototypeForRecord(Vec<AssetId>, PropertyPath, SchemaFingerprint)
ApplyResolvedPropertyToAllSelected(AssetId, Vec<AssetId>, PropertyPath)
ApplyResolvedPropertyToAllSelectedForRecord(AssetId, Vec<AssetId>, PropertyPath, SchemaFingerprint)
SetNullOverride(Vec<AssetId>, PropertyPath, NullOverride)
AddDynamicArrayEntry(AssetId, PropertyPath)
AddMapEntry(AssetId, PropertyPath)
RemoveDynamicArrayEntry(AssetId, PropertyPath, Uuid)
RemoveMapEntry(AssetId, PropertyPath, Uuid)
MoveDynamicArrayEntryUp(AssetId, PropertyPath, Uuid)
MoveDynamicArrayEntryDown(AssetId, PropertyPath, Uuid)
MoveStaticArrayOverrideUp(Vec<AssetId>, PropertyPath, usize)
MoveStaticArrayOverrideDown(Vec<AssetId>, PropertyPath, usize)
OverrideWithDefault(Vec<AssetId>, PropertyPath)
SetOverrideBehavior(Vec<AssetId>, PropertyPath, OverrideBehavior)
ToggleSelectAllAssetGallery
Auto Trait Implementations§
impl Freeze for UIAction
impl !RefUnwindSafe for UIAction
impl !Send for UIAction
impl !Sync for UIAction
impl Unpin for UIAction
impl !UnwindSafe for UIAction
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