pub(super) struct AssetMenuHooks {
pub on_trashed: Rc<dyn Fn()>,
pub on_edited: Rc<dyn Fn(bool)>,
}Expand description
What the view that opened the menu does after its asset is trashed or edited.
Fields§
§on_trashed: Rc<dyn Fn()>§on_edited: Rc<dyn Fn(bool)>Receives whether the capture date changed.
Implementations§
Source§impl AssetMenuHooks
impl AssetMenuHooks
Sourcepub(super) fn for_grid(ui: &Rc<LibraryWindowUi>) -> Self
pub(super) fn for_grid(ui: &Rc<LibraryWindowUi>) -> Self
Grid behaviour: trashed items are already gone from the model, and a changed capture date reloads the source because the item’s timeline position moves.
Auto Trait Implementations§
impl !RefUnwindSafe for AssetMenuHooks
impl !Send for AssetMenuHooks
impl !Sync for AssetMenuHooks
impl !UnwindSafe for AssetMenuHooks
impl Freeze for AssetMenuHooks
impl Unpin for AssetMenuHooks
impl UnsafeUnpin for AssetMenuHooks
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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