CallMethodAsyncAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct CallMethodAsyncAction
Calls a method of the target_object (or of the sender) by name: a
method without parameters, or with two parameters (the sender and the parameter of the action)
whose first parameter is untyped.
The method is found among the methods the markup metadata of the target declares (the reflection of the reference).
Members
TYPEto_refmethod_name_propertytarget_object_propertyconstructnewmethod_nameset_method_nametarget_objectset_target_object
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<CallMethodAsyncAction>
Returns a strong reference to this object.
method_name_property
fn method_name_property() -> &'static StyledProperty<Option<String>>
Identifies the MethodName property.
target_object_property
fn target_object_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the TargetObject property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
method_name
fn method_name(self: &Self) -> Option<String>
Gets or sets the name of the method to call. This is a property of the object model.
set_method_name
fn set_method_name(self: &Self, value: Option<String>)
target_object
fn target_object(self: &Self) -> Option<BoxedValue>
Gets or sets the object that exposes the method. If not set, the sender is used. Markup resolves a name given for it to the named element.
set_target_object
fn set_target_object(self: &Self, value: Option<BoxedValue>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<CallMethodAsyncAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.