FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TimerTrigger

    struct · ferroui-xaml-interactions · v0.5.0

    struct TimerTrigger
    

    A trigger that invokes its actions after a specified interval.

    The timer starts when the trigger is attached; the event of the trigger (see EventTriggerBase) restarts it.

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

    Returns a strong reference to this object.

    Source

    milliseconds_per_tick_property

    fn milliseconds_per_tick_property() -> &'static StyledProperty<i32>
    

    Identifies the MillisecondsPerTick property.

    Source

    total_ticks_property

    fn total_ticks_property() -> &'static StyledProperty<i32>
    

    Identifies the TotalTicks property.

    Source

    repeat_forever_property

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

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

    milliseconds_per_tick

    fn milliseconds_per_tick(self: &Self) -> i32
    

    Gets or sets the time, in milliseconds, between timer ticks.

    Source

    set_milliseconds_per_tick

    fn set_milliseconds_per_tick(self: &Self, value: i32)
    

    Source

    total_ticks

    fn total_ticks(self: &Self) -> i32
    

    Gets or sets the number of ticks after which the trigger stops firing.

    Source

    set_total_ticks

    fn set_total_ticks(self: &Self, value: i32)
    

    Source

    repeat_forever

    fn repeat_forever(self: &Self) -> bool
    

    Gets or sets a value indicating whether the timer repeats indefinitely.

    Source

    set_repeat_forever

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

    Source

    Trait implementations

    Availability

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