pub struct Interaction;Expand description
Defines a BehaviorCollection attached property and provides a method for executing an
ActionCollection.
Implementations§
Source§impl Interaction
impl Interaction
Source§impl Interaction
impl Interaction
Sourcepub fn behaviors_property() -> &'static AttachedProperty<Option<BehaviorCollection>>
pub fn behaviors_property() -> &'static AttachedProperty<Option<BehaviorCollection>>
Gets or sets the BehaviorCollection associated with a specified object.
Source§impl Interaction
impl Interaction
Sourcepub fn get_behaviors(obj: &FerroObject) -> BehaviorCollection
pub fn get_behaviors(obj: &FerroObject) -> BehaviorCollection
Gets the BehaviorCollection associated with a specified object.
A collection is created and set if the object has none: the collection of markup’s
property element syntax (<Interaction.Behaviors>), which adds the behaviors to the
collection the getter returns.
Sourcepub fn set_behaviors(obj: &FerroObject, value: Option<BehaviorCollection>)
pub fn set_behaviors(obj: &FerroObject, value: Option<BehaviorCollection>)
Sets the BehaviorCollection associated with a specified object.
Sourcepub fn execute_actions(
sender: Option<&BoxedValue>,
actions: Option<&ActionCollection>,
parameter: Option<&BoxedValue>,
) -> Vec<BoxedValue> ⓘ
pub fn execute_actions( sender: Option<&BoxedValue>, actions: Option<&ActionCollection>, parameter: Option<&BoxedValue>, ) -> Vec<BoxedValue> ⓘ
Executes all actions in the ActionCollection and returns their results.
sender is passed on to the actions; the value of parameter is determined by the calling
behavior. Returns the results of the actions that returned one, in the order of the
actions.
Trait Implementations§
Source§impl MarkupTyped for Interaction
impl MarkupTyped for Interaction
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl StaticType for Interaction
impl StaticType for Interaction
Auto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnsafeUnpin for Interaction
impl UnwindSafe for Interaction
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more