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.
Members
TYPEto_refmilliseconds_per_tick_propertytotal_ticks_propertyrepeat_forever_propertyconstructnewmilliseconds_per_tickset_milliseconds_per_ticktotal_ticksset_total_ticksrepeat_foreverset_repeat_forever
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TimerTrigger>
Returns a strong reference to this object.
milliseconds_per_tick_property
fn milliseconds_per_tick_property() -> &'static StyledProperty<i32>
Identifies the MillisecondsPerTick property.
total_ticks_property
fn total_ticks_property() -> &'static StyledProperty<i32>
Identifies the TotalTicks property.
repeat_forever_property
fn repeat_forever_property() -> &'static StyledProperty<bool>
Identifies the RepeatForever property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
milliseconds_per_tick
fn milliseconds_per_tick(self: &Self) -> i32
Gets or sets the time, in milliseconds, between timer ticks.
set_milliseconds_per_tick
fn set_milliseconds_per_tick(self: &Self, value: i32)
total_ticks
fn total_ticks(self: &Self) -> i32
Gets or sets the number of ticks after which the trigger stops firing.
set_total_ticks
fn set_total_ticks(self: &Self, value: i32)
repeat_forever
fn repeat_forever(self: &Self) -> bool
Gets or sets a value indicating whether the timer repeats indefinitely.
set_repeat_forever
fn set_repeat_forever(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtEventTriggerBaseImplExtDerefUpcast<T>Upcast<TimerTrigger>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImplEventTriggerBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.