FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DebounceAction

    struct · ferroui-xaml-interactions · v0.5.0

    struct DebounceAction
    

    An action that will execute its child actions after a specified delay. If invoked again before the delay elapses, the timer is reset.

    While the action is in the logical tree, its styled element actions are its logical children.

    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<DebounceAction>
    

    Returns a strong reference to this object.

    Source

    delay_property

    fn delay_property() -> &'static StyledProperty<Duration>
    

    Identifies the Delay property.

    Source

    actions_property

    fn actions_property() -> &'static StyledProperty<Option<ActionCollection>>
    

    Identifies the Actions property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    delay

    fn delay(self: &Self) -> Duration
    

    Gets or sets the delay to wait before executing the actions. This is a property of the object model.

    Source

    set_delay

    fn set_delay(self: &Self, value: Duration)
    

    Source

    actions

    fn actions(self: &Self) -> Option<ActionCollection>
    

    Gets or sets the collection of actions to execute. This is a property of the object model.

    Source

    set_actions

    fn set_actions(self: &Self, value: Option<ActionCollection>)
    

    Source

    Trait implementations

    Availability

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