MCPcopy Create free account
hub / github.com/VimYoung/Spell / SpellMultiWinHandler

Class SpellMultiWinHandler

spell-framework/src/slint_adapter.rs:92–96  ·  view source on GitHub ↗

This struct is responsible for handling, initialising, updating and maintaining of various widgets that are being rendered simultaneously across monitors for your lock. It uses [SpellSkiaWinAdapter] internally. This struct is made public for documentation purposes (and was previously used by end user of library) but it is now not to be used directly.

Source from the content-addressed store, hash-verified

90 // FIXME: this implementation should be by smithay-clipboard.
91 // fix after state management moved from window to platform.
92 fn set_clipboard_text(&self, text: &str, _clipboard: slint::platform::Clipboard) {
93 // if let DefaultClipboard = clipboard {
94 let opts = Options::new();
95 if let Err(err) = opts.copy(
96 Source::Bytes(text.to_string().into_bytes().into()),
97 CopyMimeType::Autodetect,
98 ) {
99 warn!("[Clipboard]: Error in setting clipboard value: {}", err);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected