FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SetPathIconDataAction

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

    struct SetPathIconDataAction
    

    Changes the PathIcon::data of a target icon when executed.

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

    Returns a strong reference to this object.

    Source

    data_property

    fn data_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
    

    Identifies the Data property.

    Source

    path_icon_property

    fn path_icon_property() -> &'static StyledProperty<Option<ElementRef<PathIcon>>>
    

    Identifies the PathIcon property.

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

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    data

    fn data(self: &Self) -> Option<Ref<Geometry>>
    

    Gets or sets the geometry to apply. This is a property of the object model.

    Source

    set_data

    fn set_data(self: &Self, value: impl Into<Nullable<Geometry>>)
    

    Source

    path_icon

    fn path_icon(self: &Self) -> Option<Ref<PathIcon>>
    

    Gets or sets the target icon. This is a property of the object model. Markup resolves a name given for it to the named element.

    Source

    set_path_icon

    fn set_path_icon(self: &Self, value: impl Into<Nullable<PathIcon>>)
    

    Source

    Trait implementations

    Availability

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