FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PastingFromClipboardEventArgs

    struct · ferroui-controls · v0.5.0

    struct PastingFromClipboardEventArgs
    

    Provides data specific to a TextBox::pasting_from_clipboard event.

    View source

    Members

    new

    fn new<T: ?Sized>(routed_event: &RoutedEvent<T>, clipboard: Option<Rc<dyn IClipboard>>) -> Self
    

    Initializes a new instance of the PastingFromClipboardEventArgs class.

    routed_event is the routed event associated with these event args, clipboard the clipboard being pasted from.

    Source

    clipboard

    fn clipboard(self: &Self) -> Option<Rc<dyn IClipboard>>
    

    The clipboard being pasted from. This is either the system clipboard or, when pasting via middle-click on platforms supporting it, the primary selection.

    None when no clipboard is available; a handler can still handle the event to provide custom paste behavior.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default
    • Deref
    • IRoutedEventArgs

    Availability

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