FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InactivityTrigger

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

    struct InactivityTrigger
    

    A trigger that fires when the user has been inactive (no mouse/keyboard input) for a specified duration.

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

    Returns a strong reference to this object.

    Source

    timeout_property

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

    Identifies the Timeout 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

    timeout

    fn timeout(self: &Self) -> Duration
    

    Gets or sets the inactivity timeout duration.

    Source

    set_timeout

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

    Source

    Trait implementations

    Availability

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