pub fn text(&self, mode: Mode) -> String {
        let enum_mode_1 = mode as u32;

        let (obj_data, funcs) = self.get_clipboard_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).text)(obj_data, enum_mode_1);
            let ret_val = CStr::from_ptr(ret_val).to_string_lossy().into_owned();
            ret_val
        }
    }
///
/// **Overloads**
/// Returns the clipboard text in subtype *subtype,* or an empty string
/// if the clipboard does not contain any text. If *subtype* is null,
/// any subtype is acceptable, and *subtype* is set to the chosen
/// subtype.
///
/// The *mode* argument is used to control which part of the system
/// clipboard is used. If *mode* is QClipboard::Clipboard, the
/// text is retrieved from the global clipboard. If *mode* is
/// QClipboard::Selection, the text is retrieved from the global
/// mouse selection.
///
/// Common values for *subtype* are and .
///
/// Note that calling this function repeatedly, for instance from a
/// key event handler, may be slow. In such cases, you should use the
/// `dataChanged()` signal instead.
///
/// **See also:** [`set_text()`]
/// [`mime_data()`]
///
/// Returns the clipboard text as plain text, or an empty string if the
/// clipboard does not contain any text.
///
/// The *mode* argument is used to control which part of the system
/// clipboard is used. If *mode* is QClipboard::Clipboard, the
/// text is retrieved from the global clipboard. If *mode* is
/// QClipboard::Selection, the text is retrieved from the global
/// mouse selection. If *mode* is QClipboard::FindBuffer, the
/// text is retrieved from the search string buffer.
///
/// **See also:** [`set_text()`]
/// [`mime_data()`]
Overloads
Returns the clipboard text in subtype *subtype,* or an empty string
if the clipboard does not contain any text. If *subtype* is null,
any subtype is acceptable, and *subtype* is set to the chosen
subtype.

The *mode* argument is used to control which part of the system
clipboard is used. If *mode* is QClipboard::Clipboard, the
text is retrieved from the global clipboard. If *mode* is
QClipboard::Selection, the text is retrieved from the global
mouse selection.

Common values for *subtype* are and .

Note that calling this function repeatedly, for instance from a
key event handler, may be slow. In such cases, you should use the
`dataChanged()` signal instead.



Returns the clipboard text as plain text, or an empty string if the
clipboard does not contain any text.

The *mode* argument is used to control which part of the system
clipboard is used. If *mode* is QClipboard::Clipboard, the
text is retrieved from the global clipboard. If *mode* is
QClipboard::Selection, the text is retrieved from the global
mouse selection. If *mode* is QClipboard::FindBuffer, the
text is retrieved from the search string buffer.


Overloads Returns the clipboard text in subtype * subtype * or an empty string if the clipboard does not contain any text . If * subtype * is null any subtype is acceptable and * subtype * is set to the chosen subtype . The * mode * argument is used to control which part of the system clipboard is used . If * mode * is QClipboard :: Clipboard the text is retrieved from the global clipboard . If * mode * is QClipboard :: Selection the text is retrieved from the global mouse selection . Common values for * subtype * are and . Note that calling this function repeatedly for instance from a key event handler may be slow . In such cases you should use the ` dataChanged () ` signal instead . Returns the clipboard text as plain text or an empty string if the clipboard does not contain any text . The * mode * argument is used to control which part of the system clipboard is used . If * mode * is QClipboard :: Clipboard the text is retrieved from the global clipboard . If * mode * is QClipboard :: Selection the text is retrieved from the global mouse selection . If * mode * is QClipboard :: FindBuffer the text is retrieved from the search string buffer .
pub fn text(&self, mode: Mode) -> String {
        let enum_mode_1 = mode as u32;
        let (obj_data, funcs) = self.get_clipboard_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).text)(obj_data, enum_mode_1);
            let ret_val = CStr::from_ptr(ret_val).to_string_lossy().into_owned();
            ret_val
        }
    }
pub fn text ( & self , mode : Mode ) -> String { let enum_mode_1 = mode as u32 ; let ( obj_data , funcs ) = self . get_clipboard_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . text ) ( obj_data , enum_mode_1 ) ; let ret_val = CStr :: from_ptr ( ret_val ) . to_string_lossy ( ) . into_owned ( ) ; ret_val } }
Overloads
Returns the clipboard text in subtype *subtype,* or an empty string
if the clipboard does not contain any text.
Overloads Returns the clipboard text in subtype * subtype * or an empty string if the clipboard does not contain any text .
&self
mode
Mode
&self
mode
Mode