FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LaunchUriOrFileAction

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

    struct LaunchUriOrFileAction
    

    An action that will launch a process to open a file or URI. For files, this action will launch the default program for the given file extension. A URI will open in a web browser.

    Deviation (DEVIATIONS.md, Behaviors): the reference starts a process with shell execution (Process.Start). The port opens the path with the launcher of the top level of the sender (the platform service of the framework that opens a URI or a file with its default program): an absolute URI is launched as a URI, any other path as a file. The action returns false when the sender is not in a top level.

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

    Returns a strong reference to this object.

    Source

    path_property

    fn path_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the Path 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

    path

    fn path(self: &Self) -> Option<String>
    

    Gets or sets the file or URI to open. This is a property of the object model.

    Source

    set_path

    fn set_path(self: &Self, value: Option<String>)
    

    Source

    Trait implementations

    Availability

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