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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<LaunchUriOrFileAction>
Returns a strong reference to this object.
path_property
fn path_property() -> &'static StyledProperty<Option<String>>
Identifies the Path property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
path
fn path(self: &Self) -> Option<String>
Gets or sets the file or URI to open. This is a property of the object model.
set_path
fn set_path(self: &Self, value: Option<String>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<LaunchUriOrFileAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.