Trait ux::ClipboardExt[][src]

pub trait ClipboardExt: 'static {
    pub fn get_text<P>(&self, callback: P)
    where
        P: 'static + FnOnce(&Clipboard, &str)
;
pub fn set_text(&self, text: Option<String>); }

Required methods

pub fn get_text<P>(&self, callback: P) where
    P: 'static + FnOnce(&Clipboard, &str), 
[src]

get_text: @clipboard: A #Clipboard @callback: (scope async): function to be called when the text is retreived @user_data: data to be passed to the callback

Request the data from the clipboard in text form. @callback is executed when the data is retreived.

pub fn set_text(&self, text: Option<String>)[src]

set_text: @clipboard: A #Clipboard @text: text to copy to the clipboard

Sets text as the current contents of the clipboard.

Loading content...

Implementors

impl<O> ClipboardExt for O where
    O: Is<Clipboard>, 
[src]

pub fn get_text<P>(&self, callback: P) where
    P: 'static + FnOnce(&Clipboard, &str), 
[src]

get_text: @clipboard: A #Clipboard @callback: (scope async): function to be called when the text is retreived @user_data: data to be passed to the callback

Request the data from the clipboard in text form. @callback is executed when the data is retreived.

pub fn set_text(&self, text: Option<String>)[src]

set_text: @clipboard: A #Clipboard @text: text to copy to the clipboard

Sets text as the current contents of the clipboard.

Loading content...