FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    clipboard_property

    fn clipboard_property() -> &'static StyledProperty<Option<ClipboardRef>>
    

    Identifies the Clipboard property.

    Source

    format_property

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

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

    clipboard

    fn clipboard(self: &Self) -> Option<ClipboardRef>
    

    Gets or sets the clipboard to use. This is a property of the object model.

    Source

    set_clipboard

    fn set_clipboard(self: &Self, value: Option<ClipboardRef>)
    

    Source

    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.

    Source

    set_format

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

    Source

    Trait implementations

    Availability

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