FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ClipboardMonitorBehavior

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

    struct ClipboardMonitorBehavior
    

    A behavior that monitors the system clipboard for specific data formats.

    While the associated control is in the visual tree, the clipboard of its top level is read every second; has_data tells whether it holds data in one of the formats.

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

    Returns a strong reference to this object.

    Source

    formats_property

    fn formats_property() -> &'static StyledProperty<String>
    

    Identifies the Formats property.

    Source

    has_data_property

    fn has_data_property() -> &'static DirectProperty<ClipboardMonitorBehavior, bool>
    

    Identifies the HasData property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    formats

    fn formats(self: &Self) -> String
    

    Gets or sets the comma-separated list of clipboard formats to listen for (e.g., "Text,FileNames").

    Source

    set_formats

    fn set_formats(self: &Self, value: String)
    

    Source

    has_data

    fn has_data(self: &Self) -> bool
    

    Gets a value indicating whether the clipboard contains data in any of the specified formats.

    Source

    content_changed

    fn content_changed(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
    

    Occurs when the clipboard content availability changes. The subscription ends when the returned handle is disposed.

    Source

    Trait implementations

    Availability

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