pub struct EventChainLink { /* private fields */ }Expand description
One link of the chain of a routed event: an object whose handlers saw the event, whether the event was handled there and the route it took.
Implementations§
Source§impl EventChainLink
impl EventChainLink
Sourcepub fn new(
handler: BoxedValue,
handled: bool,
route: RoutingStrategies,
) -> Rc<Self>
pub fn new( handler: BoxedValue, handled: bool, route: RoutingStrategies, ) -> Rc<Self>
C# new EventChainLink(object handler, bool handled, RoutingStrategies route).
pub fn handler(&self) -> BoxedValue
pub fn begins_new_route(&self) -> bool
pub fn set_begins_new_route(&self, value: bool)
Sourcepub fn handler_name(&self) -> String
pub fn handler_name(&self) -> String
The name of the handler: its name and the name of its type (name (Button)) when it is
a named element (INamed) with a name, else the name of its type.
pub fn handled(&self) -> bool
pub fn set_handled(&self, value: bool)
pub fn route(&self) -> RoutingStrategies
Trait Implementations§
Source§impl MarkupTyped for EventChainLink
impl MarkupTyped for EventChainLink
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for EventChainLink
impl !RefUnwindSafe for EventChainLink
impl !Send for EventChainLink
impl !Sync for EventChainLink
impl !UnwindSafe for EventChainLink
impl Unpin for EventChainLink
impl UnsafeUnpin for EventChainLink
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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