FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ClickEventTrigger

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct ClickEventTrigger
    

    Trigger that emulates Button click semantics on any Control.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ClickEventTrigger>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    click_mode_property

    fn click_mode_property() -> &'static StyledProperty<ClickMode>
    

    Identifies the click_mode property.

    Source

    routing_strategies_property

    fn routing_strategies_property() -> &'static StyledProperty<RoutingStrategies>
    

    Identifies the routing_strategies property.

    Source

    key_modifiers_property

    fn key_modifiers_property() -> &'static StyledProperty<Option<KeyModifiers>>
    

    Identifies the key_modifiers property.

    Source

    is_default_property

    fn is_default_property() -> &'static StyledProperty<bool>
    

    Identifies the is_default property.

    Source

    is_cancel_property

    fn is_cancel_property() -> &'static StyledProperty<bool>
    

    Identifies the is_cancel property.

    Source

    flyout_property

    fn flyout_property() -> &'static StyledProperty<Option<Ref<FlyoutBase>>>
    

    Identifies the flyout property.

    Source

    use_attached_flyout_property

    fn use_attached_flyout_property() -> &'static StyledProperty<bool>
    

    Identifies the use_attached_flyout property.

    Source

    handle_event_property

    fn handle_event_property() -> &'static StyledProperty<bool>
    

    Identifies the handle_event property.

    Source

    handled_events_too_property

    fn handled_events_too_property() -> &'static StyledProperty<bool>
    

    Identifies the handled_events_too property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    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.

    Source

    set_source_control

    fn set_source_control(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    click_mode

    fn click_mode(self: &Self) -> ClickMode
    

    Gets or sets how this trigger reacts to pointer and keyboard clicks.

    Source

    set_click_mode

    fn set_click_mode(self: &Self, value: ClickMode)
    

    Source

    routing_strategies

    fn routing_strategies(self: &Self) -> RoutingStrategies
    

    Gets or sets the routed event strategies used when subscribing to pointer and keyboard input events.

    Source

    set_routing_strategies

    fn set_routing_strategies(self: &Self, value: RoutingStrategies)
    

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> Option<KeyModifiers>
    

    Gets or sets required key modifiers for click execution.

    Source

    set_key_modifiers

    fn set_key_modifiers(self: &Self, value: Option<KeyModifiers>)
    

    Source

    is_default

    fn is_default(self: &Self) -> bool
    

    Gets or sets whether Enter on the visual root should invoke this trigger.

    Source

    set_is_default

    fn set_is_default(self: &Self, value: bool)
    

    Source

    is_cancel

    fn is_cancel(self: &Self) -> bool
    

    Gets or sets whether Escape on the visual root should invoke this trigger.

    Source

    set_is_cancel

    fn set_is_cancel(self: &Self, value: bool)
    

    Source

    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.

    Source

    set_flyout

    fn set_flyout(self: &Self, value: Option<Ref<FlyoutBase>>)
    

    Source

    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.

    Source

    set_use_attached_flyout

    fn set_use_attached_flyout(self: &Self, value: bool)
    

    Source

    handle_event

    fn handle_event(self: &Self) -> bool
    

    Gets or sets whether handled semantics should be applied to routed events.

    Source

    set_handle_event

    fn set_handle_event(self: &Self, value: bool)
    

    Source

    handled_events_too

    fn handled_events_too(self: &Self) -> bool
    

    Gets or sets whether this trigger should receive already handled routed events.

    Source

    set_handled_events_too

    fn set_handled_events_too(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.