ThrottleAction
struct · ferroui-xaml-interactions · v0.5.0
struct ThrottleAction
An action that will execute its child actions immediately, but ignores subsequent invocations until a specified interval has passed.
While the action is in the logical tree, its styled element actions are its logical children.
Members
TYPEto_refinterval_propertyactions_propertyconstructnewintervalset_intervalactionsset_actions
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ThrottleAction>
Returns a strong reference to this object.
interval_property
fn interval_property() -> &'static StyledProperty<Duration>
Identifies the Interval property.
actions_property
fn actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the Actions property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
interval
fn interval(self: &Self) -> Duration
Gets or sets the minimum interval between executions. This is a property of the object model.
set_interval
fn set_interval(self: &Self, value: Duration)
actions
fn actions(self: &Self) -> Option<ActionCollection>
Gets or sets the collection of actions to execute. This is a property of the object model.
set_actions
fn set_actions(self: &Self, value: Option<ActionCollection>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<ThrottleAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.