FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SetCursorFromProviderAction

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

    struct SetCursorFromProviderAction
    

    Sets the cursor on a target control using an ICursorProvider.

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

    Returns a strong reference to this object.

    Source

    target_control_property

    fn target_control_property() -> &'static StyledProperty<Option<ElementRef<InputElement>>>
    

    Identifies the TargetControl property.

    Deviation (DEVIATIONS.md, Behaviors): the action does not own the control, so the value is an element reference.

    Source

    provider_property

    fn provider_property() -> &'static StyledProperty<Option<Rc<dyn ICursorProvider>>>
    

    Identifies the Provider property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    target_control

    fn target_control(self: &Self) -> Option<Ref<InputElement>>
    

    Gets or sets the target control. This is a property of the object model; markup resolves a name given for it to the named control.

    Source

    set_target_control

    fn set_target_control(self: &Self, value: impl Into<Nullable<InputElement>>)
    

    Source

    provider

    fn provider(self: &Self) -> Option<Rc<dyn ICursorProvider>>
    

    Gets or sets the ICursorProvider. This is a property of the object model.

    Source

    set_provider

    fn set_provider(self: &Self, value: Option<Rc<dyn ICursorProvider>>)
    

    Source

    Trait implementations

    Availability

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