pub struct PlatformClipboardManager { /* private fields */ }Expand description
A clipboard manager holding the clipboards it was created with.
Implementations§
Source§impl PlatformClipboardManager
impl PlatformClipboardManager
Sourcepub fn new(
clipboard: Option<Rc<dyn IClipboard>>,
primary_selection: Option<Rc<dyn IClipboard>>,
) -> Self
pub fn new( clipboard: Option<Rc<dyn IClipboard>>, primary_selection: Option<Rc<dyn IClipboard>>, ) -> Self
Creates the manager from the default clipboard and the primary selection clipboard of the platform.
Trait Implementations§
Source§impl IPlatformClipboardManagerImpl for PlatformClipboardManager
impl IPlatformClipboardManagerImpl for PlatformClipboardManager
Source§fn try_get_clipboard(&self, type_: ClipboardType) -> Option<Rc<dyn IClipboard>>
fn try_get_clipboard(&self, type_: ClipboardType) -> Option<Rc<dyn IClipboard>>
Gets the clipboard of the given type, if the platform has one.
Auto Trait Implementations§
impl !RefUnwindSafe for PlatformClipboardManager
impl !Send for PlatformClipboardManager
impl !Sync for PlatformClipboardManager
impl !UnwindSafe for PlatformClipboardManager
impl Freeze for PlatformClipboardManager
impl Unpin for PlatformClipboardManager
impl UnsafeUnpin for PlatformClipboardManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more