GetClipboardDataAction
struct · ferroui-xaml-interactions · v0.5.0
struct GetClipboardDataAction
An action that will get the data of a format from the clipboard and pass it to its command.
The format Text gives the text (String), Files the files and folders
(Vec<StorageItemRef>), FileNames their local paths (Vec<String>); any other format is read
as the text of the application format of that name, else as the bytes of the platform format of
that name (Rc<[u8]>).
Deviation (DEVIATIONS.md, Behaviors): the BinaryFormatter payloads the reference deserializes
on one of its targets are not deserialized (the reference disables that path on its other
targets too); their bytes are passed.
Members
TYPEto_refclipboard_propertyformat_propertyconstructnewclipboardset_clipboardformatset_format
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<GetClipboardDataAction>
Returns a strong reference to this object.
clipboard_property
fn clipboard_property() -> &'static StyledProperty<Option<ClipboardRef>>
Identifies the Clipboard property.
format_property
fn format_property() -> &'static StyledProperty<Option<String>>
Identifies the Format property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
clipboard
fn clipboard(self: &Self) -> Option<ClipboardRef>
Gets or sets the clipboard to use. This is a property of the object model.
set_clipboard
fn set_clipboard(self: &Self, value: Option<ClipboardRef>)
format
fn format(self: &Self) -> Option<String>
Gets or sets the format to get from the clipboard. This is a property of the object model.
set_format
fn set_format(self: &Self, value: Option<String>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<GetClipboardDataAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.