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.
Members
TYPEto_refformats_propertyhas_data_propertyconstructnewformatsset_formatshas_datacontent_changed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ClipboardMonitorBehavior>
Returns a strong reference to this object.
formats_property
fn formats_property() -> &'static StyledProperty<String>
Identifies the Formats property.
has_data_property
fn has_data_property() -> &'static DirectProperty<ClipboardMonitorBehavior, bool>
Identifies the HasData property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
formats
fn formats(self: &Self) -> String
Gets or sets the comma-separated list of clipboard formats to listen for (e.g., "Text,FileNames").
set_formats
fn set_formats(self: &Self, value: String)
has_data
fn has_data(self: &Self) -> bool
Gets a value indicating whether the clipboard contains data in any of the specified
formats.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ClipboardMonitorBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.