ClickEventTrigger
struct · ferroui-xaml-interactions-custom · v0.5.0
struct ClickEventTrigger
Trigger that emulates Button click semantics on any Control.
Members
TYPEto_refsource_control_propertyclick_mode_propertyrouting_strategies_propertykey_modifiers_propertyis_default_propertyis_cancel_propertyflyout_propertyuse_attached_flyout_propertyhandle_event_propertyhandled_events_too_propertyconstructnewsource_controlset_source_controlclick_modeset_click_moderouting_strategiesset_routing_strategieskey_modifiersset_key_modifiersis_defaultset_is_defaultis_cancelset_is_cancelflyoutset_flyoutuse_attached_flyoutset_use_attached_flyouthandle_eventset_handle_eventhandled_events_tooset_handled_events_too
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ClickEventTrigger>
Returns a strong reference to this object.
source_control_property
fn source_control_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
Identifies the source_control property.
Deviation (DEVIATIONS.md, Behaviors): the trigger does not own the control, so the value is an element reference.
click_mode_property
fn click_mode_property() -> &'static StyledProperty<ClickMode>
Identifies the click_mode property.
routing_strategies_property
fn routing_strategies_property() -> &'static StyledProperty<RoutingStrategies>
Identifies the routing_strategies property.
key_modifiers_property
fn key_modifiers_property() -> &'static StyledProperty<Option<KeyModifiers>>
Identifies the key_modifiers property.
is_default_property
fn is_default_property() -> &'static StyledProperty<bool>
Identifies the is_default property.
is_cancel_property
fn is_cancel_property() -> &'static StyledProperty<bool>
Identifies the is_cancel property.
flyout_property
fn flyout_property() -> &'static StyledProperty<Option<Ref<FlyoutBase>>>
Identifies the flyout property.
use_attached_flyout_property
fn use_attached_flyout_property() -> &'static StyledProperty<bool>
Identifies the use_attached_flyout property.
handle_event_property
fn handle_event_property() -> &'static StyledProperty<bool>
Identifies the handle_event property.
handled_events_too_property
fn handled_events_too_property() -> &'static StyledProperty<bool>
Identifies the handled_events_too property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
source_control
fn source_control(self: &Self) -> Option<Ref<Control>>
Gets or sets the source control from which this trigger listens for click semantics. If not set, it defaults to the associated object. Markup resolves a name given for it to the named element.
set_source_control
fn set_source_control(self: &Self, value: impl Into<Nullable<Control>>)
click_mode
fn click_mode(self: &Self) -> ClickMode
Gets or sets how this trigger reacts to pointer and keyboard clicks.
set_click_mode
fn set_click_mode(self: &Self, value: ClickMode)
routing_strategies
fn routing_strategies(self: &Self) -> RoutingStrategies
Gets or sets the routed event strategies used when subscribing to pointer and keyboard input events.
set_routing_strategies
fn set_routing_strategies(self: &Self, value: RoutingStrategies)
key_modifiers
fn key_modifiers(self: &Self) -> Option<KeyModifiers>
Gets or sets required key modifiers for click execution.
set_key_modifiers
fn set_key_modifiers(self: &Self, value: Option<KeyModifiers>)
is_default
fn is_default(self: &Self) -> bool
Gets or sets whether Enter on the visual root should invoke this trigger.
set_is_default
fn set_is_default(self: &Self, value: bool)
is_cancel
fn is_cancel(self: &Self) -> bool
Gets or sets whether Escape on the visual root should invoke this trigger.
set_is_cancel
fn set_is_cancel(self: &Self, value: bool)
flyout
fn flyout(self: &Self) -> Option<Ref<FlyoutBase>>
Gets or sets an explicit flyout instance used for toggle-on-click behavior. Markup resolves a name given for it to the named flyout.
set_flyout
fn set_flyout(self: &Self, value: Option<Ref<FlyoutBase>>)
use_attached_flyout
fn use_attached_flyout(self: &Self) -> bool
Gets or sets whether to fallback to the attached flyout of the source control
(FlyoutBase::get_attached_flyout) when flyout is not set.
set_use_attached_flyout
fn set_use_attached_flyout(self: &Self, value: bool)
handle_event
fn handle_event(self: &Self) -> bool
Gets or sets whether handled semantics should be applied to routed events.
set_handle_event
fn set_handle_event(self: &Self, value: bool)
handled_events_too
fn handled_events_too(self: &Self) -> bool
Gets or sets whether this trigger should receive already handled routed events.
set_handled_events_too
fn set_handled_events_too(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ClickEventTrigger>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.